-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.ts
27 lines (27 loc) · 762 Bytes
/
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
export default {
workerIdleMemoryLimit: '1024mb',
preset: 'ts-jest',
clearMocks: true,
testEnvironment: 'node',
collectCoverage: false,
coverageDirectory: 'coverage',
moduleDirectories: ['node_modules', 'src'],
moduleFileExtensions: ['js', 'json', 'jsx', 'ts'],
modulePathIgnorePatterns: ['<rootDir>/dist'],
moduleNameMapper: {
'@tests/(.*)': ['<rootDir>/tests/$1'],
'@src/(.*)': ['<rootDir>/src/$1'],
'@domain/(.*)': ['<rootDir>/src/domain/$1'],
'@usecases/(.*)': ['<rootDir>/src/usecases/$1'],
},
roots: ['<rootDir>'],
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec).[tj]s?(x)'],
transform: {
'^.+\\.(t|j)s$': [
'ts-jest',
{
compiler: 'ts-patch/compiler',
},
],
},
};