-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjest.config.js
More file actions
executable file
·31 lines (31 loc) · 978 Bytes
/
jest.config.js
File metadata and controls
executable file
·31 lines (31 loc) · 978 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
27
28
29
30
31
module.exports = {
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: './',
testRegex: '.*\\.spec\\.ts$',
testPathIgnorePatterns: [
'./node_modules/',
'./packages/backend/node_modules',
'./packages/frontend/node_modules',
],
roots: [
'<rootDir>',
'<rootDir>/packages/backend',
'<rootDir>/packages/frontend',
'<rootDir>/packages/shared',
],
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
collectCoverageFrom: ['**/*.(t|j)s'],
coverageDirectory: '../coverage',
testEnvironment: 'node',
moduleNameMapper: {
'@backend/(.*)': '<rootDir>/packages/backend/src/$1',
'backend/(.*)': '<rootDir>/packages/backend/src/$1',
'@domain/(.*)': '<rootDir>/packages/backend/src/domain/$1',
'@frontend/(.*)': '<rootDir>/packages/frontend/src/$1',
'frontend/(.*)': '<rootDir>/packages/frontend/src/$1',
'@shared/(.*)': '<rootDir>/packages/shared/src/$1',
'shared/(.*)': '<rootDir>/packages/shared/src/$1',
},
};