-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathjest.config.json
49 lines (49 loc) · 1.03 KB
/
jest.config.json
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
{
"preset": "ts-jest",
"testEnvironment": "jsdom",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"transformIgnorePatterns": [
"/node_modules/(?![d3-shape|recharts]).+\\.js$"
],
"collectCoverage": true,
"coverageReporters": [
"text",
"cobertura",
"clover",
"lcov",
"json"
],
"testTimeout": 15000,
"collectCoverageFrom": [
"src/**/*.{ts,tsx}"
],
"coveragePathIgnorePatterns": [
"node_modules",
"build",
"src/index.tsx",
"src/AppProvider.tsx",
"src/store/store.ts",
"src/preview/util/gitlabDriver.ts"
],
"modulePathIgnorePatterns": [
"test/e2e",
"mocks",
"config"
],
"coverageDirectory": "<rootDir>/coverage/",
"globals": {
"window.ENV.SERVER_HOSTNAME": "localhost",
"window.ENV.SERVER_PORT": 3500
},
"verbose": true,
"testRegex": "/test/.*\\.test.tsx?$",
"modulePaths": [
"<rootDir>/src/"
],
"moduleNameMapper": {
"^test/(.*)$": "<rootDir>/test/$1",
"\\.(css|less|scss)$": "<rootDir>/test/preview/__mocks__/styleMock.ts"
}
}