Skip to content

Commit

Permalink
👷 Exclude tests in lib directory
Browse files Browse the repository at this point in the history
Tests are run after packaging and at this time there is already are compiled tests found in directory `lib` produced by npm run build.
  • Loading branch information
WtfJoke committed Feb 2, 2025
1 parent 0ee1ce3 commit c5da4c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {defineConfig} from 'vitest/config'
import {configDefaults} from 'vitest/config'

export default defineConfig({
test: {
globals: true
globals: true,
exclude: [...configDefaults.exclude, 'lib']
}
})

0 comments on commit c5da4c0

Please sign in to comment.