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: