forked from webdriverio/webdriverio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
49 lines (49 loc) · 1.3 KB
/
jest.config.js
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
module.exports = {
globals: {
'ts-jest': {
isolatedModules: true
}
},
testMatch: [
'**/tests/**/*.test.(js|ts)'
],
transform: {
'^.+\\.(ts|js)$': 'ts-jest'
},
testPathIgnorePatterns: [
'<rootDir>/tests/',
'<rootDir>/node_modules/'
],
collectCoverageFrom: [
'packages/**/src/**/*.(js|ts)',
'!packages/**/src/**/*.d.ts'
],
moduleNameMapper: {
'graceful-fs': '<rootDir>/tests/helpers/fs.js'
},
coverageDirectory: './coverage/',
collectCoverage: true,
coverageThreshold: {
global: {
branches: 92,
functions: 97,
lines: 98,
statements: 98
}
},
testEnvironment: 'node',
coveragePathIgnorePatterns: [
'node_modules/',
'packages/devtools/src/scripts',
'packages/devtools/src/commands',
'packages/webdriverio/src/scripts',
'packages/wdio-devtools-service/src/scripts',
'packages/webdriverio/build',
'packages/webdriver/build',
'packages/wdio-cucumber-framework/tests/fixtures',
'packages/wdio-logger/build',
'packages/wdio-webdriver-mock-service',
'packages/wdio-smoke-test-reporter',
'packages/wdio-smoke-test-service'
]
}