-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mts
More file actions
41 lines (39 loc) · 1.06 KB
/
vitest.config.mts
File metadata and controls
41 lines (39 loc) · 1.06 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
28
29
30
31
32
33
34
35
36
37
38
39
40
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tests/**/*.test.ts'],
exclude: ['benchmarks/**/*.bench.ts'],
coverage: {
provider: 'v8',
reportsDirectory: 'coverage',
reporter: ['text', 'lcov', 'json', 'json-summary', 'html'],
include: ['src/**/*.ts'],
exclude: [
'src/**/*.test.ts',
'src/**/*.spec.ts',
'**/*.bench.ts',
'src/**/*.d.ts',
'src/**/types.ts',
'src/**/interfaces.ts',
'src/compat/class-transformer/**/*', // class-transformer compat tested via integration tests
// class-validator compat is now included for 100% coverage goal
],
all: true,
thresholds: {
lines: 70,
functions: 80,
branches: 70,
statements: 70,
},
},
benchmark: {
include: ['benchmarks/suites/**/*.bench.ts'],
exclude: ['tests/**/*.test.ts'],
outputFile: {
json: './bench-results.json',
},
},
},
});