From ed1e62d94630465d22406b0b4c26e482ae45e6b8 Mon Sep 17 00:00:00 2001 From: Ludwig Hubert Date: Mon, 2 Sep 2024 09:55:38 +0200 Subject: [PATCH] Migrate mockedStore typings to vitest v2 Migrate the typings of `mockedStore` to the changes of >vitest@2.0.0: see: https://vitest.dev/guide/migration#simplified-generic-types-of-mock-functions-e-g-vi-fn-t-mock-t https://github.com/vitest-dev/vitest/releases/tag/v2.0.0 --- packages/docs/cookbook/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/cookbook/testing.md b/packages/docs/cookbook/testing.md index b7bc381a54..e60810b176 100644 --- a/packages/docs/cookbook/testing.md +++ b/packages/docs/cookbook/testing.md @@ -191,7 +191,7 @@ function mockedStore unknown>( ...args: infer Args ) => infer ReturnT ? // 👇 depends on your testing framework - Mock + Mock<(args: Args) => ReturnT> : Actions[K] } > & {