forked from react-cosmos/react-cosmos
-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.json
28 lines (28 loc) · 896 Bytes
/
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
{
"rootDir": "./",
"testEnvironment": "jsdom",
"setupFiles": ["./jest.setup.js"],
"setupTestFrameworkScriptFile": "./jest.framework-setup.js",
"testURL": "http://foo.bar/",
"testPathIgnorePatterns": ["<rootDir>/node_modules/", "/__fsmocks__/"],
"watchPathIgnorePatterns": ["/__fsoutput__/"],
"transformIgnorePatterns": ["/node_modules/(?!react-cosmos.+)"],
"collectCoverageFrom": [
"**/src/**/*.{js,jsx}",
"!**/__fixtures__/**",
"!**/react-cosmos-voyager/src/use-cases/**"
],
"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"
}
}