-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
31 lines (31 loc) · 900 Bytes
/
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
28
29
30
31
module.exports = {
transform: {
"^.+\\.tsx?$": "ts-jest"
},
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
setupFiles: [
"<rootDir>/src/__tests__/test-helper/setupTests.ts"
],
testPathIgnorePatterns: [
"node_modules",
"src/__tests__/test-helper",
"dist"
],
moduleFileExtensions: [
"ts",
"js",
"json",
"node"
],
moduleNameMapper: {
"^@tests/(.*)$": "<rootDir>/src/__tests__/$1",
"^@config/(.*)$": "<rootDir>/src/config/$1",
"^@constants/(.*)$": "<rootDir>/src/constants/$1",
"^@di/(.*)$": "<rootDir>/src/di/$1",
"^@notifications/(.*)$": "<rootDir>/src/integrations/notifications/$1",
"^@repositories/(.*)$": "<rootDir>/src/integrations/repositories/$1",
"^@service/(.*)$": "<rootDir>/src/service/$1",
"^@type/(.*)$": "<rootDir>/src/types/$1"
},
coverageReporters: ["text", "json", "lcov"]
};