-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
39 lines (39 loc) · 978 Bytes
/
jest.config.js
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
28
29
30
31
32
33
34
35
36
37
38
39
module.exports = {
collectCoverageFrom: [
'**/*.{ts,js,jsx}'
],
coveragePathIgnorePatterns: [
'/node_modules/',
'/tools/',
'/test-report/',
'/coverage/',
'/dist/',
'.config.+(ts|js)',
'environment.ts',
'environment.*.ts',
'polyfills.ts'
],
testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
transform: {
'^.+\\.(ts|js|html)$': 'ts-jest'
},
resolver: '@nrwl/jest/plugins/resolver',
reporters: [
'default',
['jest-html-reporter', {
pageTitle: 'Test Report',
outputPath: `test-reports/html/result-${Date.now()}.html`
}],
['jest-stare', {
resultDir: 'test-reports/jest-stare',
resultHtml: `result-${Date.now()}.html`,
resultJson: `result-${Date.now()}.json`
}],
['jest-junit', {
outputDirectory: `test-reports/junit`,
outputName: `junit-${Date.now()}.xml`
}]
],
coverageReporters: ['json', 'lcov', 'text', 'cobertura'],
passWithNoTests: true
};