forked from Health-watchers/health_watchers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
35 lines (35 loc) · 983 Bytes
/
Copy pathjest.config.js
File metadata and controls
35 lines (35 loc) · 983 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
32
33
34
35
/** @type {import('jest').Config} */
module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/apps/api/src', '<rootDir>/packages'],
testMatch: ['**/*.test.ts'],
moduleNameMapper: {
'^@api/(.*)$': '<rootDir>/apps/api/src/$1',
'^@health-watchers/config$': '<rootDir>/packages/config/index.ts',
},
transform: {
'^.+\\.ts$': [
'ts-jest',
{
isolatedModules: true,
useESM: false,
tsconfig: {
target: 'ES2020',
module: 'commonjs',
esModuleInterop: true,
allowSyntheticDefaultImports: true,
strict: false,
skipLibCheck: true,
types: ['jest', 'node'],
baseUrl: '.',
paths: {
'@api/*': ['apps/api/src/*'],
'@health-watchers/config': ['packages/config/index.ts'],
},
},
},
],
},
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
moduleFileExtensions: ['ts', 'js', 'json'],
};