Repository navigation
Expand file tree
/
Copy pathvitest.config.ts
More file actions
51 lines (50 loc) · 1.47 KB
/
Copy pathvitest.config.ts
File metadata and controls
51 lines (50 loc) · 1.47 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
dangerouslyIgnoreUnhandledErrors: true,
include: ['packages/**/*.test.ts', 'infra/**/*.test.ts'],
typecheck: {
enabled: true,
ignoreSourceErrors : true
},
/**
* not to ESM ported packages
*/
exclude: [
'dist', '.idea', '.git', '.cache', '**/node_modules/**',
/**
* in-page scripts, run in a real browser by `vitest.browser.config.ts`
*/
'**/*.browser.test.ts'
],
env: {
WDIO_SKIP_DRIVER_SETUP: '1'
},
// This is a measure to address Vitest errors.
// See also: https://github.com/vitest-dev/vitest/discussions/6511
pool: 'threads',
coverage: {
enabled: false,
provider: 'v8',
exclude: [
'**/__mocks__/**',
'**/build/**',
'**/cjs/*.ts',
'**/*.test.ts',
'**/*.test-d.ts',
'packages/webdriver/src/bidi/handler.ts'
],
watermarks: {
statements: [85, 90],
functions: [83, 88],
branches: [85, 90],
lines: [85, 90]
}
},
setupFiles: [
'__mocks__/fetch.ts',
'tests/setup/strictSelectors.ts'
],
testTimeout: 30000
}
})