forked from ngxs-labs/actions-executing
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.app.config.js
More file actions
27 lines (26 loc) · 881 Bytes
/
Copy pathjest.app.config.js
File metadata and controls
27 lines (26 loc) · 881 Bytes
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 path = require('path');
const { pathsToModuleNameMapper: resolver } = require('ts-jest/utils');
const { compilerOptions } = require('./tsconfig');
const moduleNameMapper = resolver(compilerOptions.paths, { prefix: '<rootDir>/' });
module.exports = {
verbose: true,
watch: false,
cache: false,
preset: 'jest-preset-angular',
rootDir: path.resolve('.'),
testMatch: ['<rootDir>/src/tests/**/*.spec.ts'],
collectCoverageFrom: ['<rootDir>/src/lib/**/*.ts'],
setupFilesAfterEnv: ['<rootDir>/setupJest.ts'],
coverageReporters: ['json', 'lcovonly', 'lcov', 'text', 'html'],
coveragePathIgnorePatterns: ['/node_modules/'],
globals: {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.json',
allowSyntheticDefaultImports: true
}
},
bail: true,
moduleNameMapper,
modulePathIgnorePatterns: ['<rootDir>/dist/'],
modulePaths: ['<rootDir>']
};