-
-
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
Fix missing error after test #8005
Conversation
packages/jest-circus/src/utils.ts
Outdated
@@ -230,6 +246,9 @@ export const callAsyncCircusFn = ( | |||
timeoutID.unref && timeoutID.unref(); | |||
clearTimeout(timeoutID); | |||
throw error; | |||
}) | |||
.finally(() => { | |||
completed = true; |
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.
not too happy about this, but we don't have access to the test
definition, and the promise has already been resolved. Might make sense to dispatch some "suite failed" event or something like that?
@aaronabramov thoughts?
661bf46
to
47fc113
Compare
bah, node 6 and 8 doesn't have |
b52b8c6
to
3401546
Compare
due to jest fix jestjs/jest#8005 After this update travis would output real errors of css validation tests
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 #6794 with a test.
The error isn't pretty, but I think it's fine. Since we're tearing down (and use lazy requires), we might get an error when trying to prettify it
Test plan
Green CI