-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathjest.config.json
51 lines (51 loc) · 1.57 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
50
51
{
"bail": true,
"collectCoverageFrom": [
"**/components/**/*.{ts,tsx}",
"!**/node_modules/**",
"!**/lib/**",
"!**/dist/**",
"!**/vendor/**",
"!**/components/_utils/**",
"!**/playground/**",
"!**/components/custom.d.ts"
],
"coverageDirectory": "./coverage",
"testPathIgnorePatterns": ["/node_modules/", "/legacy/"],
"coverageReporters": ["json", "lcov", "text", "teamcity"],
"globals": {
"ts-jest": {
"isolatedModules": true
}
},
"snapshotSerializers": ["enzyme-to-json/serializer"],
"moduleDirectories": ["node_modules", "src"],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|txt|md)$": "<rootDir>/__mocks__/fileMock.js",
"\\.css$": "identity-obj-proxy"
},
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": ["ts", "tsx", "js", "json"],
"transformIgnorePatterns": ["<rootDir>/node_modules"],
"unmockedModulePathPatterns": [
"react",
"react-dom",
"react-addons-test-utils",
"fbjs",
"enzyme",
"cheerio",
"htmlparser2",
"underscore",
"lodash",
"domhandler",
"object.assign",
"define-properties",
"function-bind",
"object-keys"
],
"setupFilesAfterEnv": ["<rootDir>/components/_utils/adapter.ts"],
"setupFiles": ["<rootDir>/components/_utils/test-setup.ts"]
}