forked from yishing/jiuzhangquanzhanke
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.conf.js
More file actions
22 lines (22 loc) · 755 Bytes
/
jest.conf.js
File metadata and controls
22 lines (22 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
preset: 'jest-preset-angular',
setupTestFrameworkScriptFile: '<rootDir>/src/test/javascript/jest.ts',
coverageDirectory: '<rootDir>/target/test-results/',
globals: {
'ts-jest': {
tsConfigFile: 'tsconfig.json'
},
__TRANSFORM_HTML__: true
},
moduleNameMapper: {
'app/(.*)': '<rootDir>/src/main/webapp/app/$1'
},
reporters: [
'default',
[ 'jest-junit', { output: './target/test-results/jest/TESTS-results.xml' } ]
],
testResultsProcessor: 'jest-sonar-reporter',
transformIgnorePatterns: ['node_modules/(?!@angular/common/locales)'],
testMatch: ['<rootDir>/src/test/javascript/spec/**/+(*.)+(spec.ts)'],
rootDir: '../../../'
};