-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvitest.config.ts
More file actions
37 lines (35 loc) · 1.02 KB
/
vitest.config.ts
File metadata and controls
37 lines (35 loc) · 1.02 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
import { defineConfig, defaultExclude } from 'vitest/config'
export default defineConfig({
// https://github.com/vitest-dev/vitest/discussions/6662
server: {
watch: {
ignored: ['**/dist/**'],
},
},
test: {
projects: ['packages/*'],
dangerouslyIgnoreUnhandledErrors: true,
include: ['packages/**/*.test.ts'],
/**
* not to ESM ported packages
*/
exclude: [...defaultExclude, '**/coverage/**', '.vscode-test'],
env: {
WDIO_UNIT_TESTING: '1',
},
coverage: {
enabled: false,
clean: false,
include: ['packages/*/src/**'],
provider: 'v8',
reportOnFailure: true,
exclude: [...defaultExclude, 'packages/wdio-vscode-types/src/**'],
watermarks: {
statements: [85, 90],
functions: [83, 88],
branches: [85, 90],
lines: [85, 90],
},
},
},
})