forked from react-cosmos/react-cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.json
35 lines (35 loc) · 1.01 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
{
"rootDir": "./",
"preset": "react-native",
"testEnvironment": "jsdom",
"setupFiles": ["./jest.setup.js"],
"setupTestFrameworkScriptFile": "./jest.framework-setup.js",
"testURL": "http://foo.bar/",
"testPathIgnorePatterns": [
"<rootDir>/node_modules/",
"/__fsmocks__/",
"/_shared"
],
"watchPathIgnorePatterns": ["/__fsoutput__/", "jestnowatch"],
"transformIgnorePatterns": [
"/node_modules/(?!(react-cosmos.+|react-native))"
],
"collectCoverageFrom": [
"**/src/**/*.{js,jsx}",
"!**/__fixtures__/**",
"!**/react-cosmos-voyager/src/use-cases/**",
"!**/react-cosmos-playground/src/next/**"
],
"coverageDirectory": "./coverage",
"coverageReporters": ["lcov", "text"],
"globals": {
"fetch": "__GLOBAL_FETCH_MOCK__",
"COSMOS_CONFIG": {
"containerQuerySelector": "__mock__containerQuerySelector"
}
},
"moduleNameMapper": {
"\\.(css|less)$": "identity-obj-proxy",
"\\.(jpg|png)$": "<rootDir>/packages/react-cosmos-playground/img-stub.js"
}
}