-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.conf.js
27 lines (27 loc) · 979 Bytes
/
jest.conf.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
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/src/test/javascript/jest.ts'],
coverageDirectory: '<rootDir>/target/test-results/',
globals: {
'ts-jest': {
stringifyContentPathRegex: '\\.html$',
tsConfig: 'tsconfig.json',
astTransformers: [require.resolve('jest-preset-angular/InlineHtmlStripStylesTransformer')]
}
},
coveragePathIgnorePatterns: [
'<rootDir>/src/test/javascript'
],
moduleNameMapper: {
'app/(.*)': '<rootDir>/src/main/webapp/app/$1'
},
reporters: [
'default',
[ 'jest-junit', { output: './target/test-results/TESTS-results-jest.xml' } ]
],
testResultsProcessor: 'jest-sonar-reporter',
transformIgnorePatterns: ['node_modules/(?!@angular/common/locales)'],
testMatch: ['<rootDir>/src/test/javascript/spec/**/@(*.)@(spec.ts)'],
rootDir: '../../../',
testURL: "http://localhost/"
};