Skip to content

Commit

Permalink
fix(docs): add missing param in mocked create (Vitest guide)
Browse files Browse the repository at this point in the history
  • Loading branch information
frixaco committed Nov 1, 2023
1 parent 492637a commit 4fd4c0a
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

0 comments on commit 4fd4c0a

Please sign in to comment.