From a10fc98545400d2b6b3d3e503e3b5b0dff83aa8c Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Fri, 5 Jan 2024 14:01:01 -0700 Subject: [PATCH] Remove unneeded extra check for React 17 in useFragment tests --- src/react/hooks/__tests__/useFragment.test.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/react/hooks/__tests__/useFragment.test.tsx b/src/react/hooks/__tests__/useFragment.test.tsx index 7dd032eb8c7..9184f18d13f 100644 --- a/src/react/hooks/__tests__/useFragment.test.tsx +++ b/src/react/hooks/__tests__/useFragment.test.tsx @@ -1513,12 +1513,6 @@ describe("has the same timing as `useQuery`", () => { cache.writeQuery({ query, data: { item: updatedItem } }); - if (React.version.startsWith("17.")) { - const { snapshot } = await ProfiledComponent.takeRender(); - expect(snapshot.queryData).toStrictEqual({ item: initialItem }); - expect(snapshot.fragmentData).toStrictEqual(updatedItem); - } - { const { snapshot } = await ProfiledComponent.takeRender(); expect(snapshot.queryData).toStrictEqual({ item: updatedItem });