From b5f5347944160e95dc075f889babd04ad429b1f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 16 Jun 2026 11:58:06 +0200 Subject: [PATCH] test(gamification): type the achievements-query mock to drop the unused-param warning --- .../__tests__/achievement-unlock-notifier.test.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/gamification/__tests__/achievement-unlock-notifier.test.tsx b/src/components/gamification/__tests__/achievement-unlock-notifier.test.tsx index de14bdb3c..66df0b1f3 100644 --- a/src/components/gamification/__tests__/achievement-unlock-notifier.test.tsx +++ b/src/components/gamification/__tests__/achievement-unlock-notifier.test.tsx @@ -16,9 +16,10 @@ vi.mock("@/hooks/use-auth", () => ({ useAuth: () => ({ isAuthenticated: true, user: mockUser }), })); -const useAchievementsQuery = vi.fn( - (_opts?: { enabled?: boolean }) => ({ data: undefined }), -); +const useAchievementsQuery = + vi.fn<(opts?: { enabled?: boolean }) => { data: undefined }>(() => ({ + data: undefined, + })); vi.mock("@/lib/queries/use-achievements-query", () => ({ useAchievementsQuery: (opts?: { enabled?: boolean }) =>