-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
27 lines (26 loc) · 901 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
const config = {
verbose: true,
moduleFileExtensions: ['ts', 'js'],
transform: {
'^.+\\.(ts)$': [
'ts-jest',
{
tsconfig: 'tsconfig.json',
},
],
},
testMatch: ['**/tests/**/*.test.(js|ts)'],
modulePathIgnorePatterns: ['./tests/config', './dist'],
moduleNameMapper: {
'^@controllers/(.*)$': '<rootDir>/src/controllers/$1',
'^@helpers/(.*)$': '<rootDir>/src/helpers/$1',
'^@middlewares/(.*)$': '<rootDir>/src/middlewares/$1',
'^@models/(.*)$': '<rootDir>/src/models/$1',
'^@routes/(.*)$': '<rootDir>/src/routes/$1',
'^@utils/(.*)$': '<rootDir>/src/utils/$1',
'^@validations/(.*)$': '<rootDir>/src/validations/$1',
'^@services/(.*)$': '<rootDir>/src/services/$1',
'^@logger$': '<rootDir>/src/logger',
},
};
module.exports = config;