-
Notifications
You must be signed in to change notification settings - Fork 33
/
jest.config.ts
34 lines (33 loc) · 977 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
28
29
30
31
32
33
34
import type { Config } from '@jest/types';
const config: Config.InitialOptions = {
verbose: true,
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: 'src',
moduleNameMapper: {
'^Root/(.*)$': '<rootDir>/src',
'^@Assets/(.*)$': '<rootDir>/src/assets/$1',
'^@Data/(.*)$': '<rootDir>/src/data/$1',
'^@Events/(.*)$': '<rootDir>/src/events/$1',
'^@Guards/(.*)$': '<rootDir>/src/guards/$1',
'^@Interceptors/(.*)$': '<rootDir>/src/interceptors/$1',
'^@Services/(.*)$': '<rootDir>/src/services/$1',
'^@Types/(.*)$': '<rootDir>/src/types/$1',
'^@Utils/(.*)$': '<rootDir>/src/utils/$1',
},
collectCoverageFrom: [
'**/*.(t|j)s',
'!**/*.module.(t|j)s',
'!**/types/**',
'!**/utilities/**',
'!**/config/**',
'!**/main.ts',
'!**/collectors/**',
'!**/migrations/**',
],
coverageDirectory: '../coverage',
testEnvironment: 'node',
};
export default config;