Skip to content

Commit

Permalink
fix(spy): updating spy types
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed Jan 2, 2025
1 parent ef1213e commit a3821e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/apollo-utils/src/errorHandler/errorHandler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof defaultLogger> = jest.spyOn(
defaultLogger,
'error',
);
const sentrySpy: jest.SpyInstance = jest.spyOn(Sentry, 'captureException');

afterEach(() => {
logErrorSpy.mockReset();
Expand Down

0 comments on commit a3821e9

Please sign in to comment.