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
feat(waitFor*): improve stacktrace for timeout errors #492
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d83e4e2:
|
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 is pretty nice. I'd wish this kind of debugging util would be easier accessible.
Co-Authored-By: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #492 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 22 22
Lines 423 425 +2
Branches 101 101
=====================================
+ Hits 423 425 +2
Continue to review full report at Codecov.
|
🎉 This PR is included in version 7.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What: feat(waitFor*): improve stacktrace for timeout errors
Why: Closes #491
Way improved:
Before:
After:
Right!?!?
Also...
Before:
After:
So much better!
How:
Create the timeout error right when the function is called so the stacktrace includes the code that called it.
Checklist:
docs site N/A
DefinitelyTyped N/A