Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/docs/cookbook/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function mockedStore<TStoreDef extends () => unknown>(
...args: infer Args
) => infer ReturnT
? // 👇 depends on your testing framework
Mock<Args, ReturnT>
Mock<(args: Args) => ReturnT>
Copy link
Member

Choose a reason for hiding this comment

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

Although now it should be able to just take Actions[K]. I need to test it

Copy link

Choose a reason for hiding this comment

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

Shouldn't this be

Suggested change
Mock<(args: Args) => ReturnT>
Mock<(...args: Args) => ReturnT>

: Actions[K]
}
> & {
Expand Down