Skip to content

Commit

Permalink
Add missing parameter in mocking zustand testing guide (pmndrs#2142)
Browse files Browse the repository at this point in the history
It seems that the parameter was missing here, resulting in returning createUncurried instead of createUncurried(stateCreator)
  • Loading branch information
sobies93 committed Oct 24, 2023
1 parent 643bb7a commit 1343998
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 @@ -87,7 +87,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 1343998

Please sign in to comment.