Skip to content

Commit

Permalink
fix(docs): add missing param in mocked create (Vitest guide) (#2166)
Browse files Browse the repository at this point in the history
  • Loading branch information
frixaco authored Nov 1, 2023
1 parent 492637a commit c500f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const createUncurried = <T>(stateCreator: zustand.StateCreator<T>) => {
}

// when creating a store, we get its initial state, create a reset function and add it in the set
export const create = (<T>() => {
export const create = (<T>(stateCreator: zustand.StateCreator<T>) => {
console.log('zustand create mock')

// to support curried version of create
Expand Down

1 comment on commit c500f70

@vercel
Copy link

@vercel vercel bot commented on c500f70 Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.