-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.conf.js
More file actions
executable file
·32 lines (32 loc) · 1.01 KB
/
jest.conf.js
File metadata and controls
executable file
·32 lines (32 loc) · 1.01 KB
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 = {
coverageDirectory: '<rootDir>/target/test-results/',
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/src/test/javascript',
'<rootDir>/src/main/webapp/app/router',
'.*.json'
],
moduleFileExtensions: ['js', 'json', 'ts', 'vue'],
transform: {
'.*\\.(vue)$': 'vue-jest',
'^.+\\.tsx?$': 'ts-jest'
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/main/webapp/app/$1',
'\\.(css|less|sass|scss)$': '<rootDir>/__mocks__/styleMock.js',
'\\.(gif|ttf|eot|svg)$': '<rootDir>/__mocks__/fileMock.js'
},
reporters: ['default', ['jest-junit', { output: './target/test-results/TESTS-results-jest.xml' }]],
testResultsProcessor: 'jest-sonar-reporter',
testMatch: ['<rootDir>/src/test/javascript/spec/**/+(*.)+(spec.ts)'],
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
rootDir: '../../../',
coverageThreshold: {
global: {
statements: 60,
// branches: 60,
functions: 60,
lines: 60
}
}
};