Skip to content
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

Keep exception stacktrace when an assertion fails #274

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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