r/learnprogramming • • Dec 12 '19
[ReactJs] Having trouble testing ErrorBoundray with testing-library-react
[deleted] — view deleted post
1
Upvotes
r/learnprogramming • • Dec 12 '19
[deleted] — view deleted post
View all comments
Show parent comment
1
u/Final_Parsec Dec 12 '19
Looks like you are using hooks, so give this work around a try.
https://stackoverflow.com/questions/53215285/how-can-i-force-component-to-re-render-with-hooks-in-react