Skip to content

Commit

Permalink
Update useSubscription tests to adjust for changes in render stream l…
Browse files Browse the repository at this point in the history
…ibrary
  • Loading branch information
jerelmiller committed Dec 4, 2024
1 parent 60d5a0e commit f38516f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/react/hooks/__tests__/useSubscription.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,8 @@ describe("data masking", () => {
link,
});

const { takeSnapshot } = renderHookToSnapshotStream(
using _disabledAct = disableActEnvironment();
const { takeSnapshot } = await renderHookToSnapshotStream(
() => useSubscription(subscription),
{
wrapper: ({ children }) => (
Expand Down Expand Up @@ -2178,7 +2179,8 @@ describe("data masking", () => {
link,
});

const { takeSnapshot } = renderHookToSnapshotStream(
using _disabledAct = disableActEnvironment();
const { takeSnapshot } = await renderHookToSnapshotStream(
() => useSubscription(subscription),
{
wrapper: ({ children }) => (
Expand Down Expand Up @@ -2249,7 +2251,8 @@ describe("data masking", () => {
});

const onData = jest.fn();
const { takeSnapshot } = renderHookToSnapshotStream(
using _disabledAct = disableActEnvironment();
const { takeSnapshot } = await renderHookToSnapshotStream(
() => useSubscription(subscription, { onData }),
{
wrapper: ({ children }) => (
Expand Down Expand Up @@ -2329,7 +2332,8 @@ describe("data masking", () => {
});

const onData = jest.fn();
const { takeSnapshot } = renderHookToSnapshotStream(
using _disabledAct = disableActEnvironment();
const { takeSnapshot } = await renderHookToSnapshotStream(
() => useSubscription(subscription, { onData }),
{
wrapper: ({ children }) => (
Expand Down

0 comments on commit f38516f

Please sign in to comment.