- Notifications
You must be signed in to change notification settings - Fork 154
/
Copy pathvitest.config.ts
26 lines (25 loc) · 665 Bytes
/
vitest.config.ts
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
import{coverageConfigDefaults,defineConfig}from'vitest/config';
exportdefaultdefineConfig({
test: {
coverage: {
provider: 'v8',
thresholds: {
statements: 100,
branches: 100,
functions: 100,
lines: 100,
},
include: ['packages/*/src/**'],
exclude: [
...coverageConfigDefaults.exclude,
'layers/**',
'packages/*/src/types/**',
'packages/*/src/types.ts',
'packages/testing/**',
],
},
setupFiles: ['./packages/testing/src/setupEnv.ts'],
hookTimeout: 1_000*60*10,// 10 minutes
testTimeout: 1_000*60*3,// 3 minutes
},
});