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

Commit a7b3554

Browse files
authored
test: remove console spy in tests (#359)
1 parent 933275c commit a7b3554

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

test/setup.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,4 @@ enzyme.configure({
1111
disableLifecycleMethods: true,
1212
})
1313

14-
// ----------------------------------------
15-
// Console
16-
// ----------------------------------------
17-
// Fail on all activity.
18-
// It is important we overload console here, before consoleUtil.ts is loaded and caches it.
19-
jest.spyOn(console, 'log')
20-
jest.spyOn(console, 'info')
21-
jest.spyOn(console, 'warn')
22-
jest.spyOn(console, 'error')
23-
2414
initKeyboardFocusMock()
25-
26-
afterAll(() => {
27-
expect(console.log).not.toHaveBeenCalled()
28-
expect(console.info).not.toHaveBeenCalled()
29-
expect(console.warn).not.toHaveBeenCalled()
30-
expect(console.error).not.toHaveBeenCalled()
31-
})

0 commit comments

Comments
 (0)