Skip to content

Commit

Permalink
chore: fix vitest typecheck config
Browse files Browse the repository at this point in the history
Fix Vitest `typecheck` by (1) updating Vitest (2) enabling `typecheck` (3) pointing typecheck to the tests tsconfig
  • Loading branch information
yamcodes authored and aleclarson committed Sep 21, 2024
1 parent d8f7281 commit 17609a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"radashi-helper": "^0.1.4",
"tsup": "^8.1.0",
"typescript": "^5.5.2",
"vitest": "2.0.5"
"vitest": "2.1.1"
},
"sideEffects": false,
"browserslist": [
Expand Down
5 changes: 5 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export default defineConfig(env => ({
include: ['src/**'],
},
setupFiles: env.mode === 'benchmark' ? ['benchmarks/globals.ts'] : [],
typecheck: {
include: ['tests/**/*.test-d.ts'],
enabled: true,
tsconfig: "tests/tsconfig.json"
},
},
resolve: {
alias: {
Expand Down

0 comments on commit 17609a3

Please sign in to comment.