Skip to content

Commit

Permalink
test: enable type check (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchdesign authored Sep 29, 2024
1 parent dc0bc05 commit bb477fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
node_modules
dist
coverage
*-temp.json

# Trailing dotted files
!.editorconfig
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"scripts": {
"build": "rimraf ./dist && tsc -p tsconfig.build.json",
"test": "vitest --config ./vitest.config.mts --dir ./test",
"test": "vitest --config ./vitest.config.mts",
"pretest": "npm run test:build",
"test:build": "npm --prefix ./examples/fastify-integration-plugin run generate-schemas",
"prepare": "npx simple-git-hooks && npm run test -- --run && npm run source:check && npm run build",
Expand Down
8 changes: 6 additions & 2 deletions vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { defineConfig } from 'vite';
import { defineConfig, defaultInclude } from 'vitest/config';

export default defineConfig({
test: {
typecheck: { enabled: true },
dir: './test',
typecheck: {
enabled: true,
include: defaultInclude,
},
setupFiles: ['vitest.setup.ts'],
pool: 'forks',
poolOptions: {
Expand Down

0 comments on commit bb477fb

Please sign in to comment.