Skip to content

Conversation

@blastrock
Copy link

This PR allows mocha to print the exception stacktrace when an assertion fails. This happens when:

  • the promise is rejected while we expected it to be fulfilled
  • the promise is rejected with a different error we expected
  • the promise is rejected with an error while we expected it to not be rejected with that error

Fixes #268

@blastrock blastrock changed the title Keep exeception stacktrace when an assertion fails Keep exception stacktrace when an assertion fails Jul 20, 2021
@nopeless
Copy link

nopeless commented Dec 7, 2021

I think this will fix my error too
Any maintainers on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Printing stacktrace whenever a promise is rejected

2 participants