How to debug empty unhandled promise rejection? #19304
Unanswered
christianinsert
asked this question in
Questions and Help
Replies: 1 comment
-
One suggestion that helped me was to add
at the top of a failing test (above describe()). I was able to see the stack trace then and debug from there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In a test spec, I keep getting:
Yes, the error message is empty.
In the corresponding video, it says
(uncaught exception) undefined: undefined
- which is not very helpful either.How can I debug such cases?
I have found out so far that it never happens when running in graphical mode. Whereas in head-less mode it fails always in Electron, but only sometimes in Chrome. But still, without a proper error message, that doesn't help much.
Beta Was this translation helpful? Give feedback.
All reactions