1
0
2019-04-01 13:14:56 +02:00

27 lines
868 B
JavaScript

module.exports = {
preset: 'jest-preset-angular',
setupTestFrameworkScriptFile: '<rootDir>/src/test/javascript/jest.ts',
coverageDirectory: '<rootDir>/build/test-results/',
globals: {
'ts-jest': {
tsConfigFile: 'tsconfig.json'
},
__TRANSFORM_HTML__: true
},
coveragePathIgnorePatterns: [
'<rootDir>/src/test/javascript'
],
moduleNameMapper: {
'app/(.*)': '<rootDir>/src/main/webapp/app/$1'
},
reporters: [
'default',
[ 'jest-junit', { output: './build/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/"
};