15 lines
No EOL
487 B
JavaScript
15 lines
No EOL
487 B
JavaScript
const { pathsToModuleNameMapper } = require('ts-jest/utils');
|
|
const { compilerOptions } = require('./tsconfig');
|
|
|
|
module.exports = {
|
|
preset: 'jest-preset-angular',
|
|
roots: ['<rootDir>/src/'],
|
|
testMatch: ['**/+(*.)+(spec).+(ts)'],
|
|
setupFilesAfterEnv: ['<rootDir>/src/test.ts'],
|
|
collectCoverage: true,
|
|
coverageReporters: ['html'],
|
|
coverageDirectory: 'coverage/my-app',
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths || {}, {
|
|
prefix: '<rootDir>/'
|
|
})
|
|
}; |