Skip to content

Commit df0810e

Browse files
committed
don't log dummy error in node onunhandledrejection test
1 parent 2555670 commit df0810e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/node/test/onunhandledrejection.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { Hub } from '@sentry/hub';
22

33
import { OnUnhandledRejection } from '../src/integrations/onunhandledrejection';
44

5+
// don't log the test errors we're going to throw, so at a quick glance it doesn't look like the test itself has failed
6+
global.console.warn = () => null;
7+
global.console.error = () => null;
8+
59
jest.mock('@sentry/hub', () => {
610
// we just want to short-circuit it, so dont worry about types
711
const original = jest.requireActual('@sentry/hub');

0 commit comments

Comments
 (0)