zustand mock issue with react-native and jest #1970
-
Hello, I created zustand.ts as described in the documentation with the following content
And here is my actual state
But every time i run the test this is now what the store would look like
while the store is expected to look like
I could call Please what am i doing wrong here please somebody help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
@teampazi did you follow our testing guide? |
Beta Was this translation helpful? Give feedback.
@teampazi yeah that's why I asked you if you are following our testing guide, since you implemented your own version and that wasn't working well due to supporting curried and uncurried versions I encourage you to use always the curried version and use the code example in our testing guide