Skip to content

Commit

Permalink
Update useQuery tests to adjust for changes in render stream library
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Dec 4, 2024
1 parent 624b354 commit 60d5a0e
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions src/react/hooks/__tests__/useQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10318,7 +10318,8 @@ describe("useQuery Hook", () => {
return null;
}

renderStream.render(<App />, {
using _disabledAct = disableActEnvironment();
await renderStream.render(<App />, {
wrapper: ({ children }) => (
<ApolloProvider client={client}>{children}</ApolloProvider>
),
Expand Down Expand Up @@ -10409,7 +10410,8 @@ describe("useQuery Hook", () => {
return null;
}

renderStream.render(<App />, {
using _disabledAct = disableActEnvironment();
await renderStream.render(<App />, {
wrapper: ({ children }) => (
<ApolloProvider client={client}>{children}</ApolloProvider>
),
Expand Down Expand Up @@ -10493,7 +10495,8 @@ describe("useQuery Hook", () => {
return null;
}

renderStream.render(<App />, {
using _disabledAct = disableActEnvironment();
await renderStream.render(<App />, {
wrapper: ({ children }) => (
<ApolloProvider client={client}>{children}</ApolloProvider>
),
Expand Down Expand Up @@ -10578,7 +10581,8 @@ describe("useQuery Hook", () => {
return null;
}

renderStream.render(<App />, {
using _disabledAct = disableActEnvironment();
await renderStream.render(<App />, {
wrapper: ({ children }) => (
<ApolloProvider client={client}>{children}</ApolloProvider>
),
Expand Down Expand Up @@ -10691,7 +10695,8 @@ describe("useQuery Hook", () => {
return null;
}

renderStream.render(<App />, {
using _disabledAct = disableActEnvironment();
await renderStream.render(<App />, {
wrapper: ({ children }) => (
<ApolloProvider client={client}>{children}</ApolloProvider>
),
Expand Down Expand Up @@ -10814,7 +10819,8 @@ describe("useQuery Hook", () => {
return null;
}

renderStream.render(<App />, {
using _disabledAct = disableActEnvironment();
await renderStream.render(<App />, {
wrapper: ({ children }) => (
<ApolloProvider client={client}>{children}</ApolloProvider>
),
Expand Down Expand Up @@ -10909,7 +10915,8 @@ describe("useQuery Hook", () => {
return null;
}

renderStream.render(<App />, {
using _disabledAct = disableActEnvironment();
await renderStream.render(<App />, {
wrapper: ({ children }) => (
<ApolloProvider client={client}>{children}</ApolloProvider>
),
Expand Down Expand Up @@ -11029,7 +11036,8 @@ describe("useQuery Hook", () => {
return null;
}

renderStream.render(<App />, {
using _disabledAct = disableActEnvironment();
await renderStream.render(<App />, {
wrapper: ({ children }) => (
<ApolloProvider client={client}>{children}</ApolloProvider>
),
Expand Down Expand Up @@ -11124,7 +11132,8 @@ describe("useQuery Hook", () => {
return null;
}

renderStream.render(<App />, {
using _disabledAct = disableActEnvironment();
await renderStream.render(<App />, {
wrapper: ({ children }) => (
<ApolloProvider client={client}>{children}</ApolloProvider>
),
Expand Down

0 comments on commit 60d5a0e

Please sign in to comment.