-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.json
40 lines (40 loc) · 1.18 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
{
"collectCoverageFrom": [
"packages/smartbox/src/components/**/*.{js,jsx}",
"packages/smartbox/src/helpers/**/*.{js,jsx}",
"packages/smartbox-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/",
"/cypress/"
],
"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",
"@smartlogic/smartbox-icons(.*)": "<rootDir>/packages/smartbox-icons/src",
"@smartlogic/smartbox(.*)": "<rootDir>/packages/smartbox/src"
}
}