In the Test with zustand/middleware/immer, "create(...) is not a function" #2723
-
Hello, I would like to ask you something about testing using zustand/middleware/immer.
When I tried to initialize the store with
The officially listed zustand mock has already been set, but it seems that create is not recognized. If you remove this mock, this error will not occur, so the mock itself appears to be working. I didn't know how to deal with it, so I'd like to know. Ref
|
Beta Was this translation helpful? Give feedback.
Answered by
dbritto-dev
Sep 10, 2024
Replies: 1 comment 13 replies
-
Can @dbritto-dev help? |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Ryo-Kgym something is weird in that config, would you trying with this template -> https://stackblitz.com/edit/vitest-zustand?file=README.md