-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathvitest.config.ts
More file actions
27 lines (26 loc) · 654 Bytes
/
vitest.config.ts
File metadata and controls
27 lines (26 loc) · 654 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
import {defineConfig} from 'vitest/config';
export default defineConfig({
esbuild: {
// Allows using the "accessor" keyword in TypeScript:
// https://github.com/vitest-dev/vitest/issues/5976#issuecomment-2190804966
target: 'es2022',
},
test: {
bail: 1,
coverage: {
exclude: ['**/cli.ts', '**/index.ts', '**/start.ts'],
include: ['src/**'],
provider: 'v8',
reporter: ['html', 'lcov', 'text'],
thresholds: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
environment: 'node',
globals: true,
include: ['**/*.test.*'],
},
});