Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

test: remove console spy in tests #359

Merged
merged 1 commit into from
Oct 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})