-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
33 lines (31 loc) · 1.05 KB
/
jest.config.ts
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
import { Config } from 'jest';
import { pathsToModuleNameMapper } from 'ts-jest';
import { compilerOptions } from './tsconfig.json';
const config: Config = {
moduleFileExtensions: ['js', 'json', 'ts'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
clearMocks: true,
collectCoverageFrom: ['**/*.ts'],
coverageDirectory: './coverage',
testEnvironment: 'node',
testRegex: '.*\\.(e2e|spec)\\.ts$',
testTimeout: 30000,
coveragePathIgnorePatterns: [
'./jest.config.ts',
'./jest.unit.config.ts',
'./jest.e2e.config.ts',
'./functions/app/repositories/condominiumMemberRepo.abstract.ts',
'./functions/app/repositories/keyRepo.abstract.ts',
'./functions/app/repositories/routeRepo.abstract.ts',
'./functions/app/adapters/jwt.abstract.ts',
'./functions/app/adapters/reports.abstract.ts',
'./functions/app/adapters/logger.abstract.ts',
'./functions/authGatewayFnc/app/adapters/errorReporting'
],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
prefix: '<rootDir>/',
}),
};
export default config;