forked from webdriverio/webdriverio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
43 lines (42 loc) · 1.24 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
40
41
42
43
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',
// we are using e2e tests for ensuring the functionality works
// check out the ./e2e folder
'packages/devtools/src/commands',
'packages/devtools/src/scripts',
'packages/webdriver/src/bidi/handler.ts'
],
watermarks: {
statements: [85, 90],
functions: [83, 88],
branches: [85, 90],
lines: [85, 90]
}
},
globalSetup: [
'scripts/test/globalSetup.ts'
]
}
})