forked from webdriverio/webdriverio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
36 lines (35 loc) · 1009 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
31
32
33
34
35
36
import { defineConfig } from 'vite'
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: [
'**/build/**',
'**/cjs/*.js',
'**/*.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'
],
lines: 92,
functions: 88,
branches: 91,
statements: 92
}
}
})