| ... | @@ -1,4 +1,5 @@ | ... | @@ -1,4 +1,5 @@ |
| 1 | import type { NativeApi } from "@t3tools/contracts"; | 1 | import type { NativeApi } from "@t3tools/contracts"; |
| | 2 | import { QueryClient } from "@tanstack/react-query"; |
| 2 | import { describe, expect, it, vi } from "vitest"; | 3 | import { describe, expect, it, vi } from "vitest"; |
| 3 | import { checkpointDiffQueryOptions, providerQueryKeys } from "./providerReactQuery"; | 4 | import { checkpointDiffQueryOptions, providerQueryKeys } from "./providerReactQuery"; |
| 4 | | 5 | |
| ... | @@ -42,7 +43,8 @@ describe("checkpointDiffQueryOptions", () => { | ... | @@ -42,7 +43,8 @@ describe("checkpointDiffQueryOptions", () => { |
| 42 | cacheScope: "turn:abc", | 43 | cacheScope: "turn:abc", |
| 43 | }); | 44 | }); |
| 44 | | 45 | |
| 45 | await options.queryFn(); | 46 | const queryClient = new QueryClient(); |
| | 47 | await queryClient.fetchQuery(options); |
| 46 | | 48 | |
| 47 | expect(getCheckpointDiff).toHaveBeenCalledWith({ | 49 | expect(getCheckpointDiff).toHaveBeenCalledWith({ |
| 48 | sessionId: "session-id", | 50 | sessionId: "session-id", |