Skip to content

Commit

Permalink
Support jest-junit >= v8.0.0
Browse files Browse the repository at this point in the history
Version v8.0.0 of jest-junit removed the `JEST_JUNIT_OUTPUT` environment variable in favour of `JEST_JUNIT_OUTPUT_DIR` and `JEST_JUNIT_OUTPUT_NAME`.

I will leave the old environment variable for backwards compatibility as it will just be ignored in newer versions.

jest-community/jest-junit#101
  • Loading branch information
NoxHarmonium committed Nov 25, 2019
1 parent 7c8e22c commit d416c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vars/buildNode1016Component.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def call(Map config) {
final yarn = { cmd ->
ansiColor('xterm') {
dir(config.baseDir) {
sh "NODE_OPTIONS=--max-old-space-size=4096 JEST_JUNIT_OUTPUT=${testOutput} yarn ${cmd}"
sh "NODE_OPTIONS=--max-old-space-size=4096 JEST_JUNIT_OUTPUT=${testOutput} JEST_JUNIT_OUTPUT_DIR=. JEST_JUNIT_OUTPUT_NAME=${testOutput} yarn ${cmd}"
}
}
}
Expand Down

0 comments on commit d416c61

Please sign in to comment.