-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.js
27 lines (27 loc) · 1.06 KB
/
jest.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
module.exports = {
roots: ["<rootDir>/packages"],
transform: {
"^.+\\.tsx?$": "ts-jest"
},
coveragePathIgnorePatterns: ["<rootDir>/__fixtures__"],
moduleNameMapper: {
"@envdoctor/utils": "<rootDir>/packages/utils/src/index.ts",
"^bad-package$": "<rootDir>/__fixtures__/packages/bad-package.js",
"^example-package$": "<rootDir>/__fixtures__/packages/package.js",
"^es6-package$": "<rootDir>/__fixtures__/packages/es6-package.js",
"^envdoctor-config-example$": "<rootDir>/__fixtures__/packages/package.js",
"^@scoped/example-package$": "<rootDir>/__fixtures__/packages/package.js",
"^@scoped/another-package$":
"<rootDir>/__fixtures__/packages/another-package.js",
"^@scoped/envdoctor-config-example$":
"<rootDir>/__fixtures__/packages/package.js",
"^@scoped/envdoctor-config$": "<rootDir>/__fixtures__/packages/package.js"
},
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
globals: {
"ts-jest": {
diagnostics: false
}
}
};