mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
test(gamification): type the achievements-query mock to drop the unused-param warning
This commit is contained in:
1 parent
4fcb105aa6
commit
b5f5347944
1 file changed
+4
-3
@@ -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 }) =>
|
||||
|
||||
Reference in new issue
Block a user