We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73c3658 commit 5901d0fCopy full SHA for 5901d0f
packages/node/test/onunhandledrejection.test.ts
@@ -2,6 +2,10 @@ import { Hub } from '@sentry/hub';
2
3
import { OnUnhandledRejection } from '../src/integrations/onunhandledrejection';
4
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
+
9
jest.mock('@sentry/hub', () => {
10
// we just want to short-circuit it, so dont worry about types
11
const original = jest.requireActual('@sentry/hub');
0 commit comments