Skip to content

Commit 249a39d

Browse files
committed
avoid logs
1 parent 3cf6d5c commit 249a39d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/node/test/sdk/init.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ describe('init()', () => {
2727
beforeEach(() => {
2828
global.__SENTRY__ = {};
2929

30+
// prevent the logger from being enabled, resulting in console.log calls
31+
vi.spyOn(logger, 'enable').mockImplementation(() => {});
32+
3033
mockAutoPerformanceIntegrations = vi.spyOn(auto, 'getAutoPerformanceIntegrations').mockImplementation(() => []);
3134
});
3235

0 commit comments

Comments
 (0)