Replies: 1 comment
-
@peshoicov would you mind sharing us how you are implementing your unit tests? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a component I am using the useStore hook like so:
And when I want to make a unit test - I am mocking this. Here are two examples I've tried:
So how can I mock the
useStore
hook so that the usage in the components work when I am unit-testing those components?PS: I got partial success with this:
But then I get only the text ... :(
Beta Was this translation helpful? Give feedback.
All reactions