-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Feature: toMatchSnapshot should let the caller know if the comparison was a match #5802
Comments
We already have |
@jeysal Thanks. You are correct that .toThrowErrorMatchingSnapshot doesn't appear to apply here because it seems to catch an exception, but the problem is that no exception is thrown. It's been a while since I looked at this. This weekend I'll reboot my brain on jest and see if I can clarify further for @thymikee. |
Thanks! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature
Current behavior
Right now toMatchSnapshot calls dontThrow. This prevents the call to toMatchSnapshot from throwing an exception even if the match fails. This precludes the caller from detecting if the snapshot match failed.
Requested behavior
Provide a way for a test to determine if the toMatchSnapshot comparison failed. This could be
Benefits
The text was updated successfully, but these errors were encountered: