diff --git a/apps/web/src/lib/providerReactQuery.test.ts b/apps/web/src/lib/providerReactQuery.test.ts index 45d822aae8e44686f4259223ef776601976ed7f3..3652414b371333767f863c8c509c86b2b3948a15 100644 --- a/apps/web/src/lib/providerReactQuery.test.ts +++ b/apps/web/src/lib/providerReactQuery.test.ts @@ -1,4 +1,5 @@ import type { NativeApi } from "@t3tools/contracts"; +import { QueryClient } from "@tanstack/react-query"; import { describe, expect, it, vi } from "vitest"; import { checkpointDiffQueryOptions, providerQueryKeys } from "./providerReactQuery"; @@ -42,7 +43,8 @@ describe("checkpointDiffQueryOptions", () => { cacheScope: "turn:abc", }); - await options.queryFn(); + const queryClient = new QueryClient(); + await queryClient.fetchQuery(options); expect(getCheckpointDiff).toHaveBeenCalledWith({ sessionId: "session-id",