-
Notifications
You must be signed in to change notification settings - Fork 470
Improve error stack traces for async errors #542
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
Improve error stack traces for async errors #542
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 3b780fa:
|
Codecov Report
@@ Coverage Diff @@
## master #542 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 23 23
Lines 429 438 +9
Branches 103 105 +2
=========================================
+ Hits 429 438 +9
Continue to review full report at Codecov.
|
Hi @rahulchavan30 good job for your first contribution 🥳 . As I understand this behavior should be enabled based on a config parameter. Maybe It's good to add also a test case. Last thing, to make the PR visibile in the issue you can add a reference like #539. Regards |
hi macro ,
|
Hi @rahulchavan30 You're welcome 😸
Around the new if. I think it's more readable |
Thanks macro will do the changes and submit ... |
Hi Macro , please bear with me , i have made the necessary changes but when i run npm test update i have changed the code to the following function onTimeout() { but i get this code coverage error wait-for.js | 94.74 | 94.12 | 100 | 94.29 | 71-72 |
Quick update i added a new test case and was able to get the code coverage passing |
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.
Just one suggestion. Otherwise this looks awesome.
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.
c
79a2967
to
3bec76b
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.
This is looking good. I'm going to make a PR for docs and then merge if nobody has any objections to this.
I have verified that this works in my own project and the stack trace is WAY better. Thanks!
@all-contributors please add @rahulchavan30 for code and tests |
I've put up a pull request to add @rahulchavan30! 🎉 |
🎉 This PR is included in version 7.3.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What:
Improve error stack traces for async errors
Why:
Improve error stack traces for async errors
How:
-changed the on timeout function
Checklist:
docs site
DefinitelyTyped
i have made changes suggested by KCD , please let me know if i need to do any more changes will be happy to do ... this is my first PR to Open source