Skip to content

Commit

Permalink
Fix failing useBackgroundQuery tests related to suspense cache changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 13, 2023
1 parent dc220cb commit f75529d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/react/hooks/__tests__/useBackgroundQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,11 @@ describe('useBackgroundQuery', () => {
}
);

expect(directSuspenseCache['queryRefs'].size).toBe(1);
expect(contextSuspenseCache['queryRefs'].size).toBe(0);
expect(directSuspenseCache).toHaveSuspenseCacheEntryUsing(client, query);
expect(contextSuspenseCache).not.toHaveSuspenseCacheEntryUsing(
client,
query
);
});

it('passes context to the link', async () => {
Expand Down

0 comments on commit f75529d

Please sign in to comment.