Easier debuggability for pending promises after a test has finished #17808
jespertheend
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
This should be easy to fix - the error is returned in |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes in tests I run across the following message:
but I just can't pin down where the pending promise is being created.
Just now I simply forgot to call
FakeTime.prototype.restore()
, but it took me a good couple of minutes to figure out what was happening.I feel like Deno has some information here that could be communicated to the user to make debugging these cases easier. Like showing a stack trace to the pending promises.
Not sure if V8 exposes that sort of thing though, maybe what I'm asking here is impossible.
Beta Was this translation helpful? Give feedback.
All reactions