forked from SparkPost/matchbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.json
37 lines (37 loc) · 1.02 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
{
"collectCoverageFrom": [
"packages/matchbox/src/components/**/*.{js,jsx}",
"packages/matchbox/src/helpers/**/*.{js,jsx}",
"packages/matchbox-icons/src/IconBase/**/*.{js,jsx}"
],
"coveragePathIgnorePatterns": [
"index.js"
],
"coverageThreshold": {
"global": {
"statements": 90
}
},
"setupTestFrameworkScriptFile": "<rootDir>/config/jest/setup.js",
"setupFiles": [
"<rootDir>/config/polyfills.js"
],
"testPathIgnorePatterns": [
"<rootDir>[/\\\\](build|docs|node_modules|scripts)[/\\\\]",
"/.cache/"
],
"testEnvironment": "node",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/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"
}
}