-
Notifications
You must be signed in to change notification settings - Fork 256
/
jest.json
67 lines (67 loc) · 1.79 KB
/
jest.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
{
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{js,jsx}",
"!src/**/index*.js",
"!src/containers/**/*.{js,jsx}"
],
"coverageDirectory": "<rootDir>/coverage",
"coverageReporters": [
"html",
"lcov"
],
"projects": [{
"displayName": "unit",
"moduleDirectories": [
"node_modules",
"<rootDir>/__tests__/utils",
"<rootDir>"
],
"moduleNameMapper": {
"\\.s?css$": "<rootDir>/__mocks__/css.js",
"^uuid$": "uuid"
},
"setupFiles": [
"<rootDir>/setupJest.js"
],
"testMatch": [
"<rootDir>/**/__tests__/**/*.{js,jsx}",
"<rootDir>/src/**/?(*.)(spec|test|unit).{js,jsx}"
],
"testPathIgnorePatterns": [
"<rootDir>/__tests__/integration",
"<rootDir>/__tests__/utils"
],
"preset": "jest-puppeteer",
"setupFilesAfterEnv": ["@testing-library/jest-dom/jest-globals"],
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!@react-dnd|react-dnd|dnd-core|react-dnd-html5-backend|dnd-multi-backend|rdndmb-html5-to-touch)"
],
"testEnvironment": "jsdom"
}, {
"displayName": "integration",
"moduleDirectories": [
"node_modules",
"<rootDir>/__tests__/utils",
"<rootDir>"
],
"moduleNameMapper": {
"\\.s?css$": "<rootDir>/__mocks__/css.js",
"^uuid$": "uuid"
},
"setupFiles": [
"<rootDir>/setupJest.js"
],
"testMatch": [
"<rootDir>/**/__tests__/integration/**/*.{js,jsx}"
],
"preset": "jest-puppeteer",
"setupFilesAfterEnv": [
"<rootDir>/setupJestIntegration.js",
"@testing-library/jest-dom/jest-globals"
],
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!@react-dnd|react-dnd|dnd-core|react-dnd-html5-backend|dnd-multi-backend|rdndmb-html5-to-touch)"
]
}]
}