Do you have an example of how to test an Error Boundary? #779
Unanswered
LaurenceM10
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I'm not aware of such example, but I think that building such a simple example should not be difficult. Error boundary catches exceptions thrown during render operations. So the test of custom error boundary component would look like this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to know the proper way to test the error boundary component.
Thank you very much in advance.
Beta Was this translation helpful? Give feedback.
All reactions