Skip to content

Commit

Permalink
fix: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell committed Mar 18, 2024
1 parent c453e71 commit 4fedd26
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/__tests__/ApolloClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2299,7 +2299,7 @@ describe("ApolloClient", () => {
expect.any(Error)
);
});
it("does not react to updates to @nonreactive fields", async () => {
it("does not support the @nonreactive directive", async () => {
const cache = new InMemoryCache();
const client = new ApolloClient({
cache,
Expand Down Expand Up @@ -2340,6 +2340,28 @@ describe("ApolloClient", () => {
complete: true,
});
}

cache.writeFragment({
fragment: ItemFragment,
data: {
__typename: "Item",
id: 5,
text: "Item #5 (edited)",
},
});

{
const result = await stream.takeNext();

expect(result).toEqual({
data: {
__typename: "Item",
id: 5,
text: "Item #5 (edited)",
},
complete: true,
});
}
});
});

Expand Down

0 comments on commit 4fedd26

Please sign in to comment.