You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on issue found here #1374 --no-bail should return 1 if any of the commands failed, instead it returns 0 always.
Expected Behavior
if any tests/commands failed, adding --no-bail should not hide the exit code, instead it should return exit code 1 if any of the packages returned exit code 1
Yeah, it's tricky. I've been noodling about this for about an hour now.
Basically, instead of using --no-bail to control the reject option passed to execa, we (probably?) need to always pass { reject: false } and do our own accounting (including setting process.exitCode, if necessary) after all the executions resolve. At least, that's how I'm exploring it right now.
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.
lockbot
locked as resolved and limited conversation to collaborators
Dec 27, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Based on issue found here #1374
--no-bail
should return 1 if any of the commands failed, instead it returns 0 always.Expected Behavior
if any tests/commands failed, adding
--no-bail
should not hide the exit code, instead it should return exit code 1 if any of the packages returned exit code 1Current Behavior
swallows the errors and returns exit code 0
Steps to Reproduce (for bugs)
"test" : "exit 1"
npm run test --no-bail
lerna.json
Context
Running CI will not allow developers see all the tests that failed, current workaround is to drop
--no-bail
The text was updated successfully, but these errors were encountered: