-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
23 lines (23 loc) · 877 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
module.exports = {
testEnvironment: 'node',
testEnvironmentOptions: {
NODE_ENV: 'test',
},
restoreMocks: true,
coveragePathIgnorePatterns: ['node_modules', 'src/config', 'src/app.js', 'tests'],
coverageReporters: ['text', 'lcov', 'clover', 'html'],
moduleNameMapper: {
"^@root(.*)$": "<rootDir>/$1",
"^@src(.*)$": "<rootDir>/src/$1",
"^@config(.*)$": "<rootDir>/src/config/$1",
"^@helpers(.*)$": "<rootDir>/src/helpers/$1",
"^@controllers(.*)$": "<rootDir>/src/controllers/$1",
"^@docs(.*)$": "<rootDir>/src/docs/$1",
"^@middlewares(.*)$": "<rootDir>/src/middlewares/$1",
"^@models(.*)$": "<rootDir>/src/models/$1",
"^@routes(.*)$": "<rootDir>/src/routes/$1",
"^@utils(.*)$": "<rootDir>/src/utils/$1",
"^@services(.*)$": "<rootDir>/src/services/$1",
"^@validations(.*)$": "<rootDir>/src/validations/$1"
},
};