Skip to content

Commit

Permalink
Silence intentional warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jul 24, 2024
1 parent 00e30ac commit 3b07314
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions src/__tests__/dataMasking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -805,17 +805,22 @@ test("masks partial cache data when returnPartialData is `true`", async () => {
link: new MockLink(mocks),
});

client.writeQuery({
query,
data: {
currentUser: {
__typename: "User",
id: 1,
// @ts-expect-error TODO: Determine how to write this with masked types
age: 34,
{
// Silence warning about writing partial data
using _ = spyOnConsole("error");

client.writeQuery({
query,
data: {
currentUser: {
__typename: "User",
id: 1,
// @ts-expect-error TODO: Determine how to write this with masked types
age: 34,
},
},
},
});
});
}

const observable = client.watchQuery({
query,
Expand Down

0 comments on commit 3b07314

Please sign in to comment.