-
Notifications
You must be signed in to change notification settings - Fork 19
/
jest.conf.json
74 lines (74 loc) · 2.23 KB
/
jest.conf.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "/__tests__/.*\\.test\\.tsx?$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"testURL": "http://localhost/",
"rootDir": "src",
"moduleNameMapper": {
"^\\~constants$": "<rootDir>/modules/constants.ts",
"^\\~externalUrls$": "<rootDir>/modules/externalUrls.ts",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.ts",
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.ts",
"^\\~context(.*)$": "<rootDir>/context$1",
"^\\~redux(.*)$": "<rootDir>/redux$1",
"^\\~data(.*)$": "<rootDir>/data$1",
"^\\~lib(.*)$": "<rootDir>/lib$1",
"^\\~routes(.*)$": "<rootDir>/routes$1",
"^\\~utils(.*)$": "<rootDir>/utils$1",
"^\\~types(.*)$": "<rootDir>/types$1",
"^\\~immutable(.*)$": "<rootDir>/immutable$1",
"\\~([a-zA-Z0-9-_]+)\\/(.*)": "<rootDir>/modules/$1/components/$2",
"^\\~testutils$": "<rootDir>/__tests__/utils.ts"
},
"setupFiles": [
"<rootDir>/__tests__/setup.ts",
"<rootDir>/__tests__/shims.ts"
],
"setupFilesAfterEnv": ["jest-enzyme"],
"collectCoverageFrom" : ["**/*.{ts,tsx,js,jsx}"],
"coverageDirectory": "../coverage",
"coverageThreshold": {
"global": {
"branches": 0
}
},
"testPathIgnorePatterns": [
"node_modules",
"src/lib/colonyNetwork",
"src/lib/colonyServer",
"src/lib/mock-oracle",
"src/lib/subgraph",
"src/lib/graph-node"
],
"coveragePathIgnorePatterns": [
"node_modules",
"src/data",
"src/lib/colonyNetwork",
"src/lib/colonyServer",
"src/lib/mock-oracle",
"src/lib/subgraph",
"src/lib/graph-node"
],
"watchPathIgnorePatterns": [
"node_modules",
"src/lib/colonyNetwork",
"src/lib/colonyServer",
"src/lib/mock-oracle",
"src/lib/subgraph",
"src/lib/graph-node"
],
"globals": {
"ts-jest": {
"diagnostics": false,
"tsConfig": "tsconfig.json"
}
}
}