From a3821e95157bbd7939675b59d6e8d2ff7dd7befa Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Thu, 2 Jan 2025 09:05:57 -0800 Subject: [PATCH] fix(spy): updating spy types --- .../apollo-utils/src/errorHandler/errorHandler.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/apollo-utils/src/errorHandler/errorHandler.spec.ts b/packages/apollo-utils/src/errorHandler/errorHandler.spec.ts index fa740d827..be00ecbe1 100644 --- a/packages/apollo-utils/src/errorHandler/errorHandler.spec.ts +++ b/packages/apollo-utils/src/errorHandler/errorHandler.spec.ts @@ -59,8 +59,11 @@ const server = new ApolloServer({ }); describe('Server error handling: ', () => { - const logErrorSpy = jest.spyOn(defaultLogger, 'error'); - const sentrySpy = jest.spyOn(Sentry, 'captureException'); + const logErrorSpy: jest.SpyInstance = jest.spyOn( + defaultLogger, + 'error', + ); + const sentrySpy: jest.SpyInstance = jest.spyOn(Sentry, 'captureException'); afterEach(() => { logErrorSpy.mockReset();