-
Notifications
You must be signed in to change notification settings - Fork 3
/
jest.config.js
29 lines (24 loc) · 892 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
28
29
module.exports = {
preset: 'ts-jest',
globals: {
'ts-jest': { tsConfigFile: 'test/tsconfig.json' },
},
testEnvironment: 'node',
// Automatically clear mock calls and instances between every test
clearMocks: true,
// Indicates whether the coverage information should be collected while executing the test
collectCoverage: false,
notify: true,
notifyMode: 'always',
// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',
// Indicates whether each individual test should be reported during the run
verbose: true,
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
setupFilesAfterEnv: ['jest-extended'],
moduleDirectories: ['node_modules', '<rootDir>/src'],
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/src/$1',
'^test/(.*)$': '<rootDir>/test/$1',
},
};