From f7b6159e39feabb3335e23ef98d3ce1ace126e94 Mon Sep 17 00:00:00 2001 From: Nathan Arthur Date: Mon, 28 Nov 2022 16:30:48 -0500 Subject: [PATCH] make strict errors test-specific --- testSetup.strict.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); });