-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Component is not updated after simulating error #1809
Comments
enzyme has no snapshot support; the closest would be Can you update your test cases to assert that either |
@ljharb, could you please explain why it works with |
There was no difference after I replaced snapshots with .debug(), except formatting.
No problem. I updated repo, removed all unnecessary tests, added one similar test with pure error for comparison. |
@asapach |
It looks like this is being caused by @aliaksandr-yermalayeu for now you can add a |
@jgzuke I suspected something like that. Thank you for the clarification. |
Reopening until #1812 lands. |
Describe the bug
Component is not rendered correctly after error simulation
Possibly related issues: #1757, #1283
To Reproduce
I created minimal repo with contained issue. Clone it, run npm i, then run tests with npm test command. One snapshot will fail.
Expected behavior
Error message should be rendered instead of normal content. It works fine with shallow and fails with mount
Desktop:
The text was updated successfully, but these errors were encountered: