Skip to content

Commit

Permalink
Use more robust type for result in snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Oct 17, 2023
1 parent f251126 commit 3d82620
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/react/hooks/__tests__/useInteractiveQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ it("loads a query when the load query function is called", async () => {
}

const ProfiledApp = profile<{
result: ReturnType<typeof useReadQuery> | null;
result: UseReadQueryResult<SimpleQueryData> | null;
suspenseCount: number;
parentRenderCount: number;
childRenderCount: number;
Expand Down Expand Up @@ -785,7 +785,7 @@ it("allows the client to be overridden", async () => {
}

const ProfiledApp = profile<{
result: ReturnType<typeof useReadQuery> | null;
result: UseReadQueryResult<SimpleQueryData> | null;
}>({
Component: () => (
<ApolloProvider client={globalClient}>
Expand Down Expand Up @@ -880,7 +880,7 @@ it("passes context to the link", async () => {
}

const ProfiledApp = profile<{
result: ReturnType<typeof useReadQuery> | null;
result: UseReadQueryResult<QueryData> | null;
}>({
Component: () => (
<ApolloProvider client={client}>
Expand Down

0 comments on commit 3d82620

Please sign in to comment.