diff --git a/testSetup.strict.ts b/testSetup.strict.ts index 9ba071720..d00c53744 100644 --- a/testSetup.strict.ts +++ b/testSetup.strict.ts @@ -3,7 +3,9 @@ import './testSetup'; const errorSpy = jest.spyOn(global.console, 'error'); const warnSpy = jest.spyOn(global.console, 'warn'); -afterAll(() => { +afterEach(() => { expect(errorSpy).not.toHaveBeenCalled(); expect(warnSpy).not.toHaveBeenCalled(); + errorSpy.mockClear(); + warnSpy.mockClear(); });