-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.json
33 lines (33 loc) · 1.02 KB
/
jest.config.json
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
{
"coverageDirectory": "./coverage",
"coverageProvider": "v8",
"globals": {
"DEVELOPMENT": false
},
"testMatch": ["**/__tests__/**/*.spec.[jt]s?(x)", "**/?(*.)+(spec|test).[tj]s?(x)"],
"transform": {
"^.+\\.tsx?$": [
"ts-jest",
{
"tsconfig": "__tests__/tsconfig.json"
}
]
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
"^.+\\.module\\.(css|sass|scss)$"
],
"moduleNameMapper": {
"^@errors/(.*)$": "<rootDir>/src/errors/$1",
"^@models/(.*)$": "<rootDir>/src/models/$1",
"^@services/(.*)$": "<rootDir>/src/services/$1",
"^@utils/(.*)$": "<rootDir>/src/utils/$1",
"^@tests/(.*)$": "<rootDir>/__tests__/$1"
},
"setupFilesAfterEnv": ["@testing-library/jest-dom"],
"resetMocks": false,
"clearMocks": true,
"preset": "ts-jest",
"testEnvironment": "jsdom",
"moduleFileExtensions": ["js", "ts", "tsx", "json"]
}