-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (24 loc) · 890 Bytes
/
jest.config.js
File metadata and controls
26 lines (24 loc) · 890 Bytes
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
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,
// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.ts?$': 'ts-jest'
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.ts?$',
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts'],
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
modulePathIgnorePatterns: ['<rootDir>/src/services', '<rootDir>/src/database', '<rootDir>/src/init'],
coveragePathIgnorePatterns: [
'<rootDir>/src/interfaces',
'<rootDir>/src/classes',
'<rootDir>/src/entity',
'<rootDir>/src/enums'
],
setupFiles: ['<rootDir>/.jest/setEnvVars.js']
};