Skip to content

Commit

Permalink
make strict errors test-specific
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Nov 28, 2022
1 parent b2c3e0f commit f7b6159
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testSetup.strict.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit f7b6159

Please sign in to comment.