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

catch exceptions that occur when printing test failures #273

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

Conversation

danbrakeley
Copy link

My specific case involved an object with circular references. When making a call to strictEqual(), I was getting:

TypeError: Converting circular structure to JSON

And then it would crash without running the rest of the tests or displaying the "FAILURES: 8/3136 assertions failed (3792ms)" line.

With this fix, I get a better display, a full stack trace, and the tests keep running.

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.

1 participant