Skip to content

Commit 50ca55a

Browse files
committed
ci: comprehensive junit reports
1 parent fd075ea commit 50ca55a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

jest.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ module.exports = {
3838
},
3939
reporters: [
4040
'default',
41-
['jest-junit', { outputDirectory: '<rootDir>/tmp/junit' }],
41+
['jest-junit', {
42+
outputDirectory: '<rootDir>/tmp/junit',
43+
classNameTemplate: '{classname}',
44+
ancestorSeparator: ' > ',
45+
titleTemplate: '{title}',
46+
addFileAttribute: 'true',
47+
reportTestSuiteErrors: 'true',
48+
}],
4249
],
4350
collectCoverageFrom: ['src/**/*.{ts,tsx,js,jsx}', '!src/**/*.d.ts'],
4451
coverageReporters: ['text', 'cobertura'],

0 commit comments

Comments
 (0)