-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathjest.config.js
More file actions
20 lines (19 loc) · 825 Bytes
/
jest.config.js
File metadata and controls
20 lines (19 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const path = require('path');
const { pathsToModuleNameMapper: resolver } = require('ts-jest');
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>/**/ngxs-firestore*.spec.ts'],
collectCoverageFrom: ['<rootDir>/integrations/**/*.ts', '<rootDir>/packages/**/*.ts'],
setupFilesAfterEnv: ['<rootDir>/setupJest.ts'],
coveragePathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/dist/', '<rootDir>/.angular/'],
bail: true,
moduleNameMapper,
modulePathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/node_modules/', '<rootDir>/.angular/'],
modulePaths: ['<rootDir>']
};