-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjest.config.ts
47 lines (47 loc) · 1.13 KB
/
jest.config.ts
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
module.exports = {
rootDir: "src",
moduleFileExtensions: ["js", "ts", "json"],
moduleNameMapper: {
"^@utils/(.*)$": "<rootDir>/utils/$1",
"^@core/(.*)$": "<rootDir>/core/$1",
"^@tests/(.*)$": "<rootDir>/tests/$1",
},
roots: ["<rootDir>"],
testEnvironment: "node",
coverageDirectory: "../coverage",
coverageReporters: ["lcov", "text-summary"],
testMatch: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
testPathIgnorePatterns: ["/node_modules/", "/fixtures/", ".*setup\\.[jt]s$"],
transform: {
"^.+\\.ts$": "ts-jest",
},
setupFiles: ["<rootDir>/../jest.setup.js"],
collectCoverage: true,
collectCoverageFrom: [
"**/*.ts",
"!**/*.d.ts",
"!**/__tests__/**",
"!**/__mocks__/**",
"!**/fixtures/**",
],
verbose: true,
reporters: [
[
"default",
{
verbosity: 3,
expand: true,
displayStacktrace: "all",
showColors: true,
},
],
],
testRunner: "jest-circus/runner",
testEnvironmentOptions: {
errorOnDeprecated: true,
},
maxWorkers: 1,
bail: false,
notify: false,
notifyMode: "failure-change",
};