-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make testFailureExitCode compatible with bail option #10958
Conversation
@@ -21,7 +21,7 @@ const HG = 'hg --config ui.username=jest_test'; | |||
|
|||
const gitVersionSupportsInitialBranch = (() => { | |||
const {stdout} = run(`${GIT} --version`); | |||
const gitVersion = stdout.split(' ').slice(-1)[0]; | |||
const gitVersion = stdout; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was necessary fix since on my machine, it gives git version 2.24.3 (Apple Git-128)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Calling jest with option "testFailureExitCode" works as expected. However, when combined with option "bail" it always fails with exit code "1" instead of the exit code provided with "testFailureExitCode".
Test plan
There's a test case in this PR that demonstrates the issue.