-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
27 lines (26 loc) · 1 KB
/
Copy pathvitest.config.ts
File metadata and controls
27 lines (26 loc) · 1 KB
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
26
27
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
projects: ['packages/*/vite.config.ts'],
// Coverage is resolved from the root config only; a `coverage` block in the package's
// `vite.config.ts` is silently ignored when the suite runs through `test.projects`, which is
// how CI runs it.
coverage: {
provider: 'v8',
include: ['packages/*/src/**'],
exclude: ['**/*.{test,spec,test-d}.*'],
thresholds: {
lines: 80,
// The library source is held to a higher bar than the repo as a whole. A glob key is
// scoped to the files it matches and fails independently of the global threshold above.
//
// This replaces a narrower `packages/*/src/reactive/**` key: the reactive
// layer is no longer the only load-bearing directory now that the component tier is
// complete, and the wider glob subsumes it.
'packages/*/src/**': {
lines: 90,
},
},
},
},
});