|
1 | 1 | import type { Integration } from '@sentry/core'; |
2 | | -import { getGlobalScope, getIsolationScope, logger } from '@sentry/core'; |
| 2 | +import { debug, getGlobalScope, getIsolationScope } from '@sentry/core'; |
3 | 3 | import * as SentryReact from '@sentry/react'; |
4 | 4 | import { getClient, getCurrentScope, WINDOW } from '@sentry/react'; |
5 | 5 | import { JSDOM } from 'jsdom'; |
6 | 6 | import { afterAll, afterEach, describe, expect, it, vi } from 'vitest'; |
7 | 7 | import { breadcrumbsIntegration, browserTracingIntegration, init } from '../src/client'; |
8 | 8 |
|
9 | 9 | const reactInit = vi.spyOn(SentryReact, 'init'); |
10 | | -const loggerLogSpy = vi.spyOn(logger, 'log'); |
| 10 | +const debugLogSpy = vi.spyOn(debug, 'log'); |
11 | 11 |
|
12 | 12 | // We're setting up JSDom here because the Next.js routing instrumentations requires a few things to be present on pageload: |
13 | 13 | // 1. Access to window.document API for `window.document.getElementById` |
@@ -90,7 +90,7 @@ describe('Client init()', () => { |
90 | 90 | }); |
91 | 91 |
|
92 | 92 | expect(transportSend).not.toHaveBeenCalled(); |
93 | | - expect(loggerLogSpy).toHaveBeenCalledWith('An event processor returned `null`, will not send event.'); |
| 93 | + expect(debugLogSpy).toHaveBeenCalledWith('An event processor returned `null`, will not send event.'); |
94 | 94 | }); |
95 | 95 |
|
96 | 96 | describe('integrations', () => { |
|
0 commit comments