-
-
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
Print errors after test structure in verbose mode #4504
Print errors after test structure in verbose mode #4504
Conversation
0d5b5ee
to
cddaa32
Compare
cddaa32
to
90ecc08
Compare
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.
it looks good!
yeah, unfortunately we have this weird subclassing that i've been trying to kill for a long time and it makes changes like this to involve more things than they should :(
@@ -30,6 +32,7 @@ describe('.assertions()', () => { | |||
}); | |||
|
|||
describe('.hasAssertions()', () => { | |||
skipOnWindows.suite(); |
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.
what happened with this test? was there a "newline" issue?
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 test failed on window build into the 'continuous-integration/appveyor/pr — AppVeyor build failed' task without any reason about the code changed in my PR. So I used 'skipOnWindows.suite()' as many other cases where is used this approach too
You are right @aaronabramov , so have you thought about to take away this subclass?, I could create a new issue about this if you agree |
* Issue 4264: print errors after test structure in verbose mode * Fix lint (jestjs#4504)) * Skip test on windows
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
This is a fix for this issue #4264
When running a single test that has many test cases the error messages are printed before the list of failing/passing tests which makes us to scroll up every time just to see the error message.
This Pull Request change the behavior of print error messages to put them after the list of tests
So the behavior is going to switch from the actual:
to this: