There was an error while loading. Please reload this page.
1 parent a605e93 commit d49f5a1Copy full SHA for d49f5a1
docs/react-testing-library/faq.mdx
@@ -113,6 +113,7 @@ test('error boundary catches error', () => {
113
)
114
expect(container.textContent).toEqual('Something went wrong.')
115
})
116
+```
117
118
If the error boundary did not catch the error, the test would fail since the `render` call would throw the error the Component produced.
119
0 commit comments