-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
25 lines (25 loc) · 855 Bytes
/
jest.config.js
File metadata and controls
25 lines (25 loc) · 855 Bytes
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
module.exports = {
roots: ["<rootDir>/src"],
transform: {
"^.+\\.tsx?$": "ts-jest",
},
testRegex: ["./_tests/.*(?<!\\.helper|\\.setup|\\.typetest)\\.tsx?"], // Any ts or tsx file in a _tests folder that doesn't end with .helper.ts
verbose: false,
globals: {
"ts-jest": {
tsConfig: "tsconfig.json",
diagnostics: false,
},
},
coverageReporters: ["json", "html-spa", "text"],
coveragePathIgnorePatterns: [".helper."],
coverageDirectory: ".coverage",
automock: false,
moduleFileExtensions: ["ts", "tsx", "js"],
transformIgnorePatterns: [],
testEnvironment: "node",
moduleNameMapper: {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/src/_tests/fakeStaticFile.helper.ts",
},
};