Skip to content

Commit

Permalink
Add missing parameter in mocking zustand testing guide (#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 authored 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

1 comment on commit 1343998

@vercel
Copy link

@vercel vercel bot commented on 1343998 Oct 24, 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.