-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Preserve stacktraces for async/await #537
Conversation
Addressed feedback. |
d816458
to
a2128b1
Compare
Cleaned up the test, this looks good to merge to me. |
I’m going to land #538 first and rebase this, so i can be sure tests pass in all relevant node versions, and then I’ll land this one. |
3c81294
to
cb5d7fd
Compare
Codecov Report
@@ Coverage Diff @@
## master #537 +/- ##
==========================================
- Coverage 73.87% 73.84% -0.03%
==========================================
Files 19 19
Lines 754 757 +3
Branches 145 146 +1
==========================================
+ Hits 557 559 +2
- Misses 197 198 +1
Continue to review full report at Codecov.
|
cb5d7fd
to
3325344
Compare
I'll fix these last failing tests, and land this tonight. |
3325344
to
d505cdf
Compare
- [Fix] preserve stack traces for returned Promises (async/await) (#537) - [Robustness] cache and call-bind more prototype methods - [Refactor] use `call-bind/callBound` instead of `function-bind` directly - [readme] Document unexpected `t.end()` behavior (#279) - [readme] Added tabe into reporter list (#249) - [readme] improve method docs - [meta] do not publish github action workflow files - [meta] run `aud` in `posttest` - [meta] add Automatic Rebase and Require Allow Edits workflows - [eslint] ensure no trailing commas - [eslint] fix some inconsistencies - [Tests] make `stripFullStack` output an array of lines, for better failure messages - [Tests] add `npm run test:example` to test non-failing examples. - [Tests] migrate tests to Github Actions (#538) - [Tests] skip Promise tests when Promises are not available - [Tests] run `nyc` on all tests - [Tests] add `timeoutAfter` test with Promises
We use
self.ifError(err)
instead ofself.fail()
which logs the original stacktrace instead of creating
a new Error object.
Fixes #536