-
-
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
[jest-circus] fix stack frame for test timeout #6303
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.
oh.. that was easy! :)
|
||
at __tests__/async_failures.test.js:24:10 | ||
|
||
● timeout | ||
|
||
Timeout - Async callback was not invoked within the 5ms timeout specified by jest.setTimeout. | ||
thrown: \\"Exceeded timeout of 5ms for a test. |
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.
that's probably going to be different from Jasmine :(
Yeah, it worked out alright when it just checks for missing traces at a later stage |
); | ||
`Exceeded timeout of ${timeout}ms for a ${ | ||
isHook ? 'hook' : 'test' | ||
}.\nUse jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test.`; |
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.
more timeout
s please!
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
By not providing a new error, some later code will make sure to append the stack from
asyncError
.We should probably still fix #6277, fwiw, but this allows us to enable the failures test.
Test plan
Green CI.