Skip to content

Keep exception stacktrace when an assertion fails#274

Open
blastrock wants to merge 1 commit intochaijs:mainfrom
blastrock:master
Open

Keep exception stacktrace when an assertion fails#274
blastrock wants to merge 1 commit intochaijs:mainfrom
blastrock:master

Conversation

@blastrock
Copy link
Copy Markdown

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
Copy Markdown

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