Skip to content

Commit

Permalink
Update failing fragmentRegistry tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Feb 5, 2025
1 parent 5f97142 commit 7c6a9d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cache/inmemory/__tests__/fragmentRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,26 @@ describe("FragmentRegistry", () => {
client.watchQuery({ query, fetchPolicy: "cache-and-network" })
);

await expect(stream).toEmitValue({
await expect(stream).toEmitApolloQueryResult({
loading: true,
networkStatus: NetworkStatus.loading,
data: {
__typename: "Query",
source: "local",
},
complete: true,
partial: false,
});

await expect(stream).toEmitValue({
await expect(stream).toEmitApolloQueryResult({
loading: false,
networkStatus: NetworkStatus.ready,
data: {
__typename: "Query",
source: "link",
},
complete: true,
partial: false,
});

expect(cache.readQuery({ query })).toEqual({
Expand Down

0 comments on commit 7c6a9d7

Please sign in to comment.