diff --git a/src/react/hooks/__tests__/useQuery.test.tsx b/src/react/hooks/__tests__/useQuery.test.tsx index 719c935bab9..209ff4d91b1 100644 --- a/src/react/hooks/__tests__/useQuery.test.tsx +++ b/src/react/hooks/__tests__/useQuery.test.tsx @@ -4215,45 +4215,6 @@ describe("useQuery Hook", () => { }); } - // Since we write data to the cache that does not contain all the data to - // fulfill the first query, it will try and fetch again - { - const { snapshot } = await Profiler.takeRender(); - - expect(snapshot.useQueryResult).toMatchObject({ - data: undefined, - loading: true, - networkStatus: NetworkStatus.loading, - }); - - expect(snapshot.useLazyQueryResult).toMatchObject({ - called: true, - data: { person: { __typename: "Person", id: 1, lastName: "Doe" } }, - loading: false, - networkStatus: NetworkStatus.ready, - }); - } - - { - const { snapshot } = await Profiler.takeRender(); - - expect(snapshot.useQueryResult).toMatchObject({ - data: undefined, - error: new ApolloError({ - graphQLErrors: [new GraphQLError("Intentional error")], - }), - loading: false, - networkStatus: NetworkStatus.error, - }); - - expect(snapshot.useLazyQueryResult).toMatchObject({ - called: true, - data: { person: { __typename: "Person", id: 1, lastName: "Doe" } }, - loading: false, - networkStatus: NetworkStatus.ready, - }); - } - await expect(Profiler).not.toRerender(); });