-
Notifications
You must be signed in to change notification settings - Fork 6
/
jest.config.js
48 lines (48 loc) · 900 Bytes
/
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
module.exports = {
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
diagnostics: {
ignoreCodes: ['TS2571']
}
}
},
moduleFileExtensions: [
'ts',
'js'
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest'
},
testMatch: [
'**/__tests__/**/*.spec.(ts|js)'
],
testPathIgnorePatterns: [
'integrationTests'
],
coveragePathIgnorePatterns: [
"src/webWorkers.ts",
"src/asar-loader.ts",
"src/parent-process/workerPlatform/webWorkers.ts",
"src/child-process/threadedclass-worker.ts",
],
testEnvironment: 'node',
coverageThreshold: {
global: {
statements: 60,
branches: 50,
functions: 60,
lines: 60,
}
},
coverageDirectory: "./coverage/",
collectCoverageFrom: [
"**/src/**/*.{ts,js}",
"!**/src/**/*.d.ts",
"!**/node_modules/**",
"!**/__tests__/**",
"!**/__mocks__/**",
"!**/dist/**"
],
collectCoverage: false
}