test: use jest-junit as needed

This commit is contained in:
Clark Du 2018-11-08 00:05:41 +00:00
parent 64839313a9
commit a204b7e765
2 changed files with 5 additions and 3 deletions

3
.gitignore vendored
View File

@ -54,3 +54,6 @@ coverage
Network Trash Folder
Temporary Items
.apdisk
# Junit report from jest-junit
*junit.xml

View File

@ -43,7 +43,6 @@ module.exports = {
],
reporters: [
'default',
'jest-junit'
]
'default'
].concat(process.env.JEST_JUNIT_OUTPUT ? ['jest-junit'] : [])
}