-
Notifications
You must be signed in to change notification settings - Fork 29
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
Attach a stack trace to the it() block promise error generated if pre… #302
base: master
Are you sure you want to change the base?
Attach a stack trace to the it() block promise error generated if pre… #302
Conversation
@@ -34,6 +41,9 @@ function registerAfterEachHook() { | |||
displayName = currentSpec.fullName; | |||
} | |||
error = new Error(displayName + ': You have created a promise that was not returned from the it block'); | |||
if (pendingPromise.trace && pendingPromise.trace.stack) { |
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.
Isn't it pendingPromise._trace
?
@alexjeffburke, are you still working on this? Did my feedback make any sense? :) |
@papandreou it completely did and thought I'd mention I've brought this back to life :) Working on a small patch the records any pending promises in an array - but first, actually had a little problem with _trace. Struggled with the env incarnation required to get the trace - I seemed to end up with. promise that didn't have a top level _trace but one down the stack did. What are the latest env args - I was trying UNEXPECTED_FULL_TRACE and BLUEBIRD_DEBUG. |
Oh and re stack trimming, you'll have to point me at where/how that's done as I'm not familiar with it. |
What changed with #300 was that even when you don't specify In your case I think |
…sent.
No idea why this never opened - but this is the change so far. If previously asked for any suggestions about the best way of testing this :)