-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathjest.config.json
38 lines (38 loc) · 1.39 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
{
"collectCoverageFrom": [
"packages/matchbox/src/components/**/*.{js,jsx}",
"packages/matchbox/src/helpers/**/*.{js,jsx}",
"packages/matchbox-icons/src/IconBase/**/*.{js,jsx}"
],
"coverageDirectory": "jest-coverage",
"coveragePathIgnorePatterns": ["index.js"],
"coverageThreshold": {
"global": {
"statements": 75
}
},
"setupFilesAfterEnv": ["<rootDir>/config/jest/setup.js"],
"setupFiles": ["<rootDir>/config/polyfills.js", "<rootDir>/config/helpers.js"],
"testPathIgnorePatterns": [
"<rootDir>[/\\\\](build|docs|node_modules|scripts)[/\\\\]",
"/.cache/",
"/cypress/"
],
"testEnvironment": "jsdom",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": ["[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"],
"moduleNameMapper": {
"^react-native$": "react-native-web",
"\\.(css|scss)$": "identity-obj-proxy",
"@sparkpost/matchbox-icons(.*)": "<rootDir>/packages/matchbox-icons/src",
"@sparkpost/matchbox(.*)": "<rootDir>/packages/matchbox/src",
"@sparkpost/design-tokens(.*)": "<rootDir>/packages/design-tokens",
"^styled-components": "<rootDir>/node_modules/styled-components",
"^test-utils$": "<rootDir>/config/test-utils.js"
}
}