From 60d5a0e6bbf993dc349418d4e02d6bdb35863637 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Wed, 4 Dec 2024 10:27:37 -0700 Subject: [PATCH] Update useQuery tests to adjust for changes in render stream library --- src/react/hooks/__tests__/useQuery.test.tsx | 27 ++++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/react/hooks/__tests__/useQuery.test.tsx b/src/react/hooks/__tests__/useQuery.test.tsx index f38e6dff465..2edf19d2a36 100644 --- a/src/react/hooks/__tests__/useQuery.test.tsx +++ b/src/react/hooks/__tests__/useQuery.test.tsx @@ -10318,7 +10318,8 @@ describe("useQuery Hook", () => { return null; } - renderStream.render(, { + using _disabledAct = disableActEnvironment(); + await renderStream.render(, { wrapper: ({ children }) => ( {children} ), @@ -10409,7 +10410,8 @@ describe("useQuery Hook", () => { return null; } - renderStream.render(, { + using _disabledAct = disableActEnvironment(); + await renderStream.render(, { wrapper: ({ children }) => ( {children} ), @@ -10493,7 +10495,8 @@ describe("useQuery Hook", () => { return null; } - renderStream.render(, { + using _disabledAct = disableActEnvironment(); + await renderStream.render(, { wrapper: ({ children }) => ( {children} ), @@ -10578,7 +10581,8 @@ describe("useQuery Hook", () => { return null; } - renderStream.render(, { + using _disabledAct = disableActEnvironment(); + await renderStream.render(, { wrapper: ({ children }) => ( {children} ), @@ -10691,7 +10695,8 @@ describe("useQuery Hook", () => { return null; } - renderStream.render(, { + using _disabledAct = disableActEnvironment(); + await renderStream.render(, { wrapper: ({ children }) => ( {children} ), @@ -10814,7 +10819,8 @@ describe("useQuery Hook", () => { return null; } - renderStream.render(, { + using _disabledAct = disableActEnvironment(); + await renderStream.render(, { wrapper: ({ children }) => ( {children} ), @@ -10909,7 +10915,8 @@ describe("useQuery Hook", () => { return null; } - renderStream.render(, { + using _disabledAct = disableActEnvironment(); + await renderStream.render(, { wrapper: ({ children }) => ( {children} ), @@ -11029,7 +11036,8 @@ describe("useQuery Hook", () => { return null; } - renderStream.render(, { + using _disabledAct = disableActEnvironment(); + await renderStream.render(, { wrapper: ({ children }) => ( {children} ), @@ -11124,7 +11132,8 @@ describe("useQuery Hook", () => { return null; } - renderStream.render(, { + using _disabledAct = disableActEnvironment(); + await renderStream.render(, { wrapper: ({ children }) => ( {children} ),