Skip to content

Commit 619feb1

Browse files
test: reset mock
1 parent 95184b8 commit 619feb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/lib/common/unitTestUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const createCheckV9Deprecation = (moduleName: string): CheckV9Deprecation
3030
uniqueMessage = '',
3131
) => {
3232
const consoleWarnSpy = jest.spyOn(console, 'warn').mockImplementation(() => {});
33-
consoleWarnSpy.mockRestore();
33+
consoleWarnSpy.mockReset();
3434
modularFunction();
3535
expect(consoleWarnSpy).not.toHaveBeenCalled();
3636
consoleWarnSpy.mockReset();

0 commit comments

Comments
 (0)