-
-
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
Add waitNextEventLoopTurnForUnhandledRejectionEvents
flag
#14681
Add waitNextEventLoopTurnForUnhandledRejectionEvents
flag
#14681
Conversation
✅ Deploy Preview for jestjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Sweet, thanks! Could you fix the ESLint and snapshot errors? |
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.
barring CI and some tiny docs tweaks, this LGTM! 😀
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.
instead of deleting/changing back the tests this feature caused in the first place, could we run Jets twice, with and without the config active?
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.
Wonderful stuff, thank you!
Sorry for all the back and forth, I appreciate you sticking with me on this! 👍
No problem! I am happy to make it land eventually |
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. |
Followup on #14315
Summary
Adds
waitNextEventLoopTurnForUnhandledRejectionEvents
flag to await for the next even loop turn to correctly detect unhandled promise rejections in tests. See #14315 (comment) for more detailsThe feature of correct detection of unhandled promise rejections adds one event loop turn to every hook and test. It may have negative performance impact on test suites with many tests and hooks.