forked from finos/architecture-as-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mts
More file actions
34 lines (31 loc) · 729 Bytes
/
vitest.config.mts
File metadata and controls
34 lines (31 loc) · 729 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
31
32
33
34
import {defineConfig} from 'vitest/config';
import {CoverageV8Options} from 'vitest/node';
const v8CoverageSettings: CoverageV8Options = {
enabled: true,
reporter: ['text', 'json', 'html'],
thresholds: {
branches: 85,
functions: 75,
lines: 75,
statements: 75
},
exclude: [
'dist/**',
'**/*.d.ts',
'test_fixtures/**',
'*.config.ts',
'src/test-utils/fixture-loader.ts',
],
include: ['src/**/*.ts'],
};
export default defineConfig({
test: {
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
...v8CoverageSettings,
},
testTimeout: 2000000
}
});