forked from webdriverio/webdriverio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
39 lines (38 loc) · 1.01 KB
/
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
31
32
33
34
35
36
37
38
39
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
dangerouslyIgnoreUnhandledErrors: true,
include: ['packages/**/*.test.ts'],
/**
* not to ESM ported packages
*/
exclude: [
'dist', '.idea', '.git', '.cache',
'**/node_modules/**',
'packages/eslint-plugin-wdio/**/*'
],
env: {
WDIO_SKIP_DRIVER_SETUP: '1'
},
coverage: {
enabled: true,
provider: 'v8',
exclude: [
'**/__mocks__/**',
'**/build/**',
'**/cjs/*.ts',
'**/*.test.ts',
'packages/webdriver/src/bidi/handler.ts'
],
watermarks: {
statements: [85, 90],
functions: [83, 88],
branches: [85, 90],
lines: [85, 90]
}
},
setupFiles: [
'__mocks__/fetch.ts'
]
}
})