Why the trying to test the store methods fail? #2999
-
I have this oversimplified zustand store:
And this is an oversimplified test that will check the login/logout flow:
However - when I call the I guess I'm missing something but I don't get it ... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@peshoicov you should use |
Beta Was this translation helpful? Give feedback.
-
Thank you, @dbritto-dev ... that did the work :) |
Beta Was this translation helpful? Give feedback.
@peshoicov you should use
useStore.getState().isLoggedIn
instead