diff --git a/test/setup.ts b/test/setup.ts index 2b782905fa..a05bd10bff 100644 --- a/test/setup.ts +++ b/test/setup.ts @@ -11,21 +11,4 @@ enzyme.configure({ disableLifecycleMethods: true, }) -// ---------------------------------------- -// Console -// ---------------------------------------- -// Fail on all activity. -// It is important we overload console here, before consoleUtil.ts is loaded and caches it. -jest.spyOn(console, 'log') -jest.spyOn(console, 'info') -jest.spyOn(console, 'warn') -jest.spyOn(console, 'error') - initKeyboardFocusMock() - -afterAll(() => { - expect(console.log).not.toHaveBeenCalled() - expect(console.info).not.toHaveBeenCalled() - expect(console.warn).not.toHaveBeenCalled() - expect(console.error).not.toHaveBeenCalled() -})