Skip to content

Commit 2aa0047

Browse files
committed
use something besides logging to force a side effect in domain test
1 parent df0810e commit 2aa0047

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/node/test/domain.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import * as domain from 'domain';
44
// We need this import here to patch domain on the global object
55
import * as Sentry from '../src';
66

7-
// eslint-disable-next-line no-console
8-
console.log(Sentry.SDK_NAME);
7+
// TODO This is here because if we don't use the `Sentry` object, the 'concurrent domain hubs' test will fail. Is this a
8+
// product of treeshaking?
9+
Sentry.getCurrentHub();
910

1011
describe('domains', () => {
1112
test('without domain', () => {

0 commit comments

Comments
 (0)