diff --git a/.gitignore b/.gitignore index c8e59b2a3b..7e7f364b24 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,6 @@ coverage Network Trash Folder Temporary Items .apdisk + +# Junit report from jest-junit +*junit.xml diff --git a/jest.config.js b/jest.config.js index 90431ce159..8927536272 100644 --- a/jest.config.js +++ b/jest.config.js @@ -43,7 +43,6 @@ module.exports = { ], reporters: [ - 'default', - 'jest-junit' - ] + 'default' + ].concat(process.env.JEST_JUNIT_OUTPUT ? ['jest-junit'] : []) }