-
Notifications
You must be signed in to change notification settings - Fork 110
/
jest.conf.js
32 lines (32 loc) · 947 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
28
29
30
31
32
module.exports = {
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
rootDir: '../../../',
testURL: 'http://localhost/',
coverageDirectory: '<rootDir>/target/test-results/',
testMatch: ['<rootDir>/src/test/javascript/spec/**/+(*.)+(spec.ts?(x))'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleNameMapper: {
'app/(.*)': '<rootDir>/src/main/webapp/app/$1',
'\\.(css|scss)$': 'identity-obj-proxy'
},
reporters: [
'default',
[ 'jest-junit', { output: './target/test-results/jest/TESTS-results.xml' } ]
],
testResultsProcessor: 'jest-sonar-reporter',
testPathIgnorePatterns: [
'<rootDir>/node_modules/'
],
setupFiles: [
'<rootDir>/src/test/javascript/spec/enzyme-setup.ts',
'<rootDir>/src/test/javascript/spec/storage-mock.ts'
],
snapshotSerializers: ['enzyme-to-json/serializer'],
globals: {
'ts-jest': {
tsConfigFile: './tsconfig.test.json'
}
}
};