-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.js
More file actions
25 lines (24 loc) · 968 Bytes
/
Copy pathvitest.config.js
File metadata and controls
25 lines (24 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { defineConfig, configDefaults } from 'vitest/config';
// Coverage-only config. Test discovery stays on Vitest defaults (it already finds
// the co-located *.test.js files), so `npm test` behaves exactly as before —
// instrumentation activates only under `--coverage` (`npm run coverage`).
export default defineConfig({
test: {
// docs/csop-handoff is a self-contained research prototype (its own package.json/tsconfig);
// its *.test.ts run under its own toolchain, never the product suite.
exclude: [
...configDefaults.exclude,
'tools/corpus/**',
'_public_sync/**',
'docs/csop-handoff/**',
],
coverage: {
provider: 'v8',
reporter: ['text-summary', 'lcov', 'html'],
reportsDirectory: 'coverage',
// Measure the shipped product only; tests/tools/bench are the harness.
include: ['src/**/*.{js,cjs,mjs}'],
// No thresholds yet — reporting first, gate later.
},
},
});