Skip to content

Commit 67430fd

Browse files
committed
Catch rogue error in getMemoryInternals tests
1 parent 7bc6120 commit 67430fd

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/utilities/caching/__tests__/getMemoryInternals.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,15 @@ it("returns information about cache usage (some query triggered)", () => {
134134
.concat(ApolloLink.empty()),
135135
});
136136

137-
client.query({
138-
query: gql`
139-
query {
140-
hello
141-
}
142-
`,
143-
});
137+
client
138+
.query({
139+
query: gql`
140+
query {
141+
hello
142+
}
143+
`,
144+
})
145+
.catch(() => {});
144146
expect(client.getMemoryInternals?.()).toStrictEqual({
145147
limits: defaultCacheSizesAsObject,
146148
sizes: {

0 commit comments

Comments
 (0)