diff options
author | Malena Ebert <63863184+malena-ebert-sonarsource@users.noreply.github.com> | 2021-01-20 14:10:36 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-03-27 20:04:06 +0000 |
commit | 51d02b308638c31d6cd4c46125ce9155fc033ecf (patch) | |
tree | cbbe7ae91db91921bfa5a77f80cc7738ddc58693 /server/sonar-web/jest.config.js | |
parent | 49612014375251ad6c77c9c0c8ec2e296532a16f (diff) | |
download | sonarqube-51d02b308638c31d6cd4c46125ce9155fc033ecf.tar.gz sonarqube-51d02b308638c31d6cd4c46125ce9155fc033ecf.zip |
BUILD-857 Add junit report format for jest tests.
Diffstat (limited to 'server/sonar-web/jest.config.js')
-rw-r--r-- | server/sonar-web/jest.config.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/server/sonar-web/jest.config.js b/server/sonar-web/jest.config.js index 6b1d649224e..8dea5867955 100644 --- a/server/sonar-web/jest.config.js +++ b/server/sonar-web/jest.config.js @@ -26,5 +26,19 @@ module.exports = { transform: { '\\.js$': 'babel-jest', '\\.(ts|tsx)$': 'ts-jest' - } + }, + reporters: [ + 'default', + [ + 'jest-junit', + { + outputDirectory: 'build/test-results/test-jest', + outputName: 'junit.xml', + ancestorSeparator: ' > ', + suiteNameTemplate: '{filename}', + classNameTemplate: '{classname}', + titleTemplate: '{title}' + } + ] + ] }; |