forked from artsy/force
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.v2.js
27 lines (27 loc) · 924 Bytes
/
jest.config.v2.js
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
module.exports = {
projects: [
{
cacheDirectory: ".cache/jest",
collectCoverage: true,
coverageDirectory: "./coverage/",
coverageReporters: ["lcov", "text-summary"],
displayName: "v2",
moduleDirectories: ["node_modules", "<rootDir>/src/v2"],
moduleFileExtensions: ["coffee", "js", "json", "jsx", "ts", "tsx"],
moduleNameMapper: {
"^luxon$": "<rootDir>/node_modules/luxon",
"^react$": "<rootDir>/node_modules/react",
},
reporters: ["default", "jest-junit"],
setupFilesAfterEnv: ["<rootDir>/src/v2/jest.envSetup.ts"],
testMatch: ["**/src/v2/**/*.jest.(ts|tsx)"],
testURL: "http://localhost",
transform: {
"\\.(gql|graphql)$": "jest-transform-graphql",
"^.+\\.coffee$":
"<rootDir>/node_modules/jest-coffee-preprocessor/index.js",
".(ts|tsx|js|jsx)": "babel-jest",
},
},
],
}