-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
30 lines (29 loc) · 855 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
30 lines (29 loc) · 855 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
26
27
28
29
30
/**
* @file Vitest projects share one explicit Node environment and coverage policy.
*/
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
include: ['tests/**/*.test.ts'],
exclude: ['tests/fixtures/**'],
environment: 'node',
maxWorkers: 2,
pool: 'forks',
testTimeout: 30000,
hookTimeout: 180000,
reporters: ['default'],
coverage: {
provider: 'v8',
reportOnFailure: true,
include: ['packages/*/src/**/*.ts', 'vendor/import/compat/**/*.ts'],
exclude: ['**/*.d.ts'],
reporter: ['text', 'json', 'html'],
thresholds: {
lines: 95,
statements: 95,
functions: 95,
branches: 90,
},
},
},
});