Skip to content

Commit 744f655

Browse files
committed
Mute console on error thrown
1 parent de2b8fc commit 744f655

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Outline.spec.jsx

+4
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ describe('Outline', () => {
6868
});
6969

7070
it('throws an error when placed outside Document', () => {
71+
muteConsole();
72+
7173
expect(() => render(<Outline />)).toThrow();
74+
75+
restoreConsole();
7276
});
7377
});
7478

0 commit comments

Comments
 (0)