-
Notifications
You must be signed in to change notification settings - Fork 8
/
jest.config.js
32 lines (32 loc) · 975 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
30
31
32
module.exports = {
moduleFileExtensions: ['js', 'ts'],
transform: {
'^.+\\.(ts)$': 'ts-jest',
},
testPathIgnorePatterns: ['/node_modules/', '.*\\.d.ts', '/workdir/'],
testRegex: '/__tests__/.*(test|spec)\\.ts$',
collectCoverage: true,
collectCoverageFrom: [
'packages/*/src/**/*.ts',
'!**/*.d.ts',
'!**/__fixtures__/**',
'!**/coverage/**',
'!**/hoth-template/**',
'!**/example/**',
'!**/node_modules/**',
],
globals: {
'ts-jest': {
tsconfig: {
strict: false
}
}
},
setupFiles: ['jest-date-mock'],
moduleNameMapper: {
'@hoth/app-autoload': '<rootDir>/packages/app-autoload/src/index.ts',
'@hoth/utils': '<rootDir>/packages/utils/src/index.ts',
'@hoth/logger': '<rootDir>/packages/logger/src/index.ts',
'@hoth/decorators': '<rootDir>/packages/decorators/src/index.ts'
}
};