Skip to content

Commit

Permalink
test: reset mock
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Nov 22, 2024
1 parent 95184b8 commit 619feb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/lib/common/unitTestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const createCheckV9Deprecation = (moduleName: string): CheckV9Deprecation
uniqueMessage = '',
) => {
const consoleWarnSpy = jest.spyOn(console, 'warn').mockImplementation(() => {});
consoleWarnSpy.mockRestore();
consoleWarnSpy.mockReset();
modularFunction();
expect(consoleWarnSpy).not.toHaveBeenCalled();
consoleWarnSpy.mockReset();
Expand Down

0 comments on commit 619feb1

Please sign in to comment.