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();