-
Notifications
You must be signed in to change notification settings - Fork 153
/
jest.legacy.config.js
33 lines (32 loc) · 1.01 KB
/
jest.legacy.config.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
28
29
30
31
32
33
const jestConfig = require("./jest.config")
module.exports = {
cacheDirectory: ".cache/jest",
moduleDirectories: ["node_modules", "<rootDir>/src"],
moduleFileExtensions: ["js", "json", "jsx", "ts", "tsx"],
moduleNameMapper: {
"^luxon$": "<rootDir>/node_modules/luxon",
"^@artsy/fresnel$": "fresnel-17",
"^react$": "react-17",
"^react-dom$": "react-dom-17",
"^react-dom/test-utils$": "react-dom-17/test-utils",
},
reporters: ["default", "jest-junit"],
setupFilesAfterEnv: [
"<rootDir>/src/Utils/jestShim.js",
"<rootDir>/src/Utils/tests.legacy.ts",
],
testEnvironment: "jest-environment-jsdom",
testMatch: ["**/src/**/*.jest.enzyme.(ts|tsx|js|jsx)"],
testEnvironmentOptions: {
url: "http://localhost",
},
transform: {
"\\.(gql|graphql)$": "@graphql-tools/jest-transform",
"(ts|tsx|js|jsx)$": jestConfig.transform["(ts|tsx|js|jsx)$"],
},
watchPlugins: [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname",
],
workerIdleMemoryLimit: "500MB",
}