-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathvitest.config.ts
30 lines (29 loc) · 923 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
27
28
29
30
import { defineConfig, coverageConfigDefaults, defaultExclude } from 'vitest/config'
export default defineConfig({
test: {
include: ['./packages/**/(tests|src)/**/*.test.ts'],
reporters: ['default', ['html', { outputFile: '.vitest-ui/index.html' }]],
coverage: {
thresholds: {
lines: 50,
statements: 50,
functions: 50,
branches: 50
},
exclude: [
...coverageConfigDefaults.exclude,
// Types
'**/types.ts',
'**/*.interfaces.ts',
// Ignored folder
'**/resemble/**',
'**/dist/**',
// Others
'packages/visual-reporter/', // Need to improve visual reporter tests
]
},
exclude: {
...defaultExclude
}
}
})