Skip to content

Commit 8ab9e46

Browse files
wrslatzCopilot
andcommitted
test: use vitest for test type checking
Co-authored-by: Copilot <copilot@github.com>
1 parent fa85b08 commit 8ab9e46

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"type-check": "tsc --noEmit",
1919
"bot:build": "tsc ./src/bot/index.ts --noEmit false --esModuleInterop --outDir ./build",
2020
"bot:start": "probot run ./build/index.js",
21-
"test": "npm run type-check && TEST_LOGGING=1 vitest run",
21+
"test": "TEST_LOGGING=1 vitest run",
2222
"test:watch": "TEST_LOGGING=1 vitest",
2323
"test:coverage": "TEST_LOGGING=1 vitest run --coverage",
2424
"prepare": "husky || true"

vitest.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,11 @@ export default defineConfig({
2222
'build/**',
2323
],
2424
},
25+
typecheck: {
26+
enabled: true,
27+
checker: 'tsc',
28+
include: ['test/**/*.ts'],
29+
tsconfig: './tsconfig.json',
30+
},
2531
},
2632
})

0 commit comments

Comments
 (0)