-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
50 lines (39 loc) · 758 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
49
50
module.exports = {
coverageThreshold: {
global: {
branches: 70,
functions: 70.75,
lines: 80,
statements: 80
}
},
transform: {
"^.+\\.[t|j]sx?$": "ts-jest"
},
globals: {
'ts-jest': {
isolatedModules: true,
tsconfig: '<rootDir>/tsconfig.json',
},
'__APP_VERSION__': '__APP_VERSION__'
},
collectCoverage: true,
testEnvironment: 'jest-environment-jsdom-sixteen',
setupFilesAfterEnv: [
'<rootDir>/jest.setup.ts'
],
transformIgnorePatterns: [
"<rootDir>/node_modules/(?!(@keen.io)/)"
],
testTimeout: 10000,
clearMocks: true,
coverageDirectory: "coverage",
moduleFileExtensions: [
"js",
"json",
"jsx",
"ts",
"tsx",
"node"
],
};