Skip to content

Typescript testing / jest mock file #1853

Answered by dbritto-dev
bglaz2 asked this question in Bug report
Discussion options

You must be logged in to vote

Sorry for the late reply! I didn't notice that in the updated version, the import changed from create to {create}, which is what was causing my issue.

Yes, latest version we moved from default export to named export so instead of import create from 'zustand' we use import { create } from 'zustand'

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bglaz2
Comment options

@dbritto-dev
Comment options

Answer selected by dbritto-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants