forked from moksamedia/split-spring-boot-vue-fullstack
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.conf.js
More file actions
30 lines (30 loc) · 922 Bytes
/
jest.conf.js
File metadata and controls
30 lines (30 loc) · 922 Bytes
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
module.exports = {
coverageDirectory: '<rootDir>/build/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',
},
reporters: ['default', ['jest-junit', { outputDirectory: './build/test-results/', outputName: '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: 80,
branches: 60,
functions: 70,
lines: 80,
},
},
};