How to change external useState when mocking component? #721
Unanswered
luca-costa
asked this question in
Q&A
Replies: 1 comment 3 replies
-
@danielroe I too am looking into this issue, and I can't quite understand how to test these kind of side effects. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a component that changes its state by watching a useState that gets changed from outside. How do I unit test it?
Beta Was this translation helpful? Give feedback.
All reactions