Typescript testing / jest mock file #1853
Answered
by
dbritto-dev
bglaz2
asked this question in
Bug report
-
Hello, are the typescript testing docs up to date? I am trying to use the provided example for jest, creating zustand.ts in the mocks folder, but every time test jest runs I receive this error: |
Beta Was this translation helpful? Give feedback.
Answered by
dbritto-dev
Jun 12, 2023
Replies: 1 comment 2 replies
-
@bglaz2 would you mind sharing use a basic example? you could use codesandbox for that |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, latest version we moved from default export to named export so instead of
import create from 'zustand'
we useimport { create } from 'zustand'