feat: configure coverage

pull/1884/head
mehmet-erim 5 years ago
parent 19c487bf8f
commit 80da964dc3

@ -8,6 +8,7 @@ module.exports = {
'^.+\\.(ts|js|html)$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '<rootDir>/coverage',
coverageReporters: ['html'],
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/test-setup.ts'],

@ -1,9 +1,10 @@
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { compilerOptions } = require('./tsconfig.spec');
const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'core',
testMatch: ['<rootDir>/packages/core/**/+(*.)+(spec|test).+(ts|js)?(x)'],
coverageDirectory: '../../coverage/libs/core',
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths /*, { prefix: '<rootDir>/' } */),
};

Loading…
Cancel
Save