-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
How to Interrupt shell script when some test case fail? #7026
Comments
Hm, yeah it looks like it returns a zero exit code even when tests fail, at least for me on windows. I think that should probably be a bug? I found jest/5841, and putting |
@heyimalex your way work, but the colors of word in thermal disappear when I use CI=1 |
@tsaohucn try using --bail instead, it should keep the styling/pretty output. |
Closing in favour of #7180. We'll try to work this out ASAP. |
I have a shell like below, and I hope it Interrupt itself when the test coverage going fail, it work when I use react-scripts in version2.1.8, but it doesn't work after I update react-scripts to version3.0.0, I found the variable $? return 1 even my tests have some fail case, is it a bug or just some function be changed? How could I get my hope function?
The text was updated successfully, but these errors were encountered: