-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
27 lines (26 loc) · 920 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
const { pathsToModuleNameMapper } = require('ts-jest');
const { compilerOptions } = require('./tsconfig.json');
module.exports = {
transform: {
'^.+.(t|j)sx?$': ['@swc/jest'],
},
clearMocks: true,
coverageProvider: 'v8',
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/src/domain/@shared/notification/notification.ts',
'<rootDir>/src/domain/**/entity/*entity.ts',
'<rootDir>/src/application/usecases/**/**/*usecase.ts',
],
coverageDirectory: 'coverage',
coverageReporters: ['text-summary', 'lcov'],
testEnvironment: 'node',
testMatch: [
'<rootDir>/src/domain/@shared/notification/*spec.ts',
'<rootDir>/src/domain/**/entity/*spec.ts',
'<rootDir>/src/application/usecases/**/**/*spec.ts',
],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
prefix: '<rootDir>/src/',
}),
};