Add test coverage command

This commit is contained in:
Peter Stockings
2026-01-06 10:01:26 +11:00
parent 7888f375e1
commit cb1dfea33b
4 changed files with 68 additions and 0 deletions

19
vitest.config.ts Normal file
View File

@@ -0,0 +1,19 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/**',
'dist/**',
'**/*.d.ts',
'**/*.config.ts',
'**/*.test.ts',
'**/*.spec.ts',
'output/**'
],
},
},
});