-
-
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
Update --forceExit and "did not exit for one second" message colors. #8329
Update --forceExit and "did not exit for one second" message colors. #8329
Conversation
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.
Definitely better! Have you considered switching to console.warn
for these messages?
Codecov Report
@@ Coverage Diff @@
## master #8329 +/- ##
=======================================
Coverage 62.17% 62.17%
=======================================
Files 266 266
Lines 10694 10694
Branches 2602 2603 +1
=======================================
Hits 6649 6649
Misses 3459 3459
Partials 586 586 Continue to review full report at Codecov.
|
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
Currently, the
--forceExit
warning is misleading because it's a bold, red message for something that you've specifically opted in to. When I run tests, my eye is looking for red to show me that something failed. If my project needs to use--forceExit
, I shouldn't see red every single time. Red should be reserved for errors.I've updated the message. It's now on one line and white. It's something you will see every single run, it shouldn't draw your eye too much.
Similarly, the "Jest did not exit for one second" message is currently shown in red. This message shouldn't show every time and should catch the user's eye. However, it's not an error by itself, it's a warning. It's possible that the test run completes successfully after this message is printed. I've updated the color to match.
Test plan