-
Notifications
You must be signed in to change notification settings - Fork 5
/
jest.config.js
18 lines (18 loc) · 833 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const { pathsToModuleNameMapper } = require('ts-jest');
const { compilerOptions } = require('./tsconfig.json');
module.exports = {
preset: 'jest-preset-angular',
roots: ['<rootDir>/src/'],
testMatch: ['**/+(*.)+(spec).+(ts)'],
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
collectCoverage: true,
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
coverageDirectory: 'coverage/cvs-app-vtm',
testPathIgnorePatterns: ['/node_modules/', '/archive/', '/dist/'],
coveragePathIgnorePatterns: ['/src/mocks/', '/src/app/api/'],
testResultsProcessor: 'jest-sonar-reporter',
workerThreads: true,
moduleNameMapper: {...pathsToModuleNameMapper(compilerOptions.paths || {}, {
prefix: '<rootDir>/'
}), "@sentry/angular-ivy": "<rootDir>/node_modules/@sentry/angular-ivy/bundles/sentry-angular-ivy.umd.js"},
};