Skip to content

Commit 7e7f0f5

Browse files
committed
fix tests
1 parent d758a56 commit 7e7f0f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/nextjs/test/clientSdk.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type { Integration } from '@sentry/core';
2-
import { getGlobalScope, getIsolationScope, logger } from '@sentry/core';
2+
import { debug, getGlobalScope, getIsolationScope } from '@sentry/core';
33
import * as SentryReact from '@sentry/react';
44
import { getClient, getCurrentScope, WINDOW } from '@sentry/react';
55
import { JSDOM } from 'jsdom';
66
import { afterAll, afterEach, describe, expect, it, vi } from 'vitest';
77
import { breadcrumbsIntegration, browserTracingIntegration, init } from '../src/client';
88

99
const reactInit = vi.spyOn(SentryReact, 'init');
10-
const loggerLogSpy = vi.spyOn(logger, 'log');
10+
const debugLogSpy = vi.spyOn(debug, 'log');
1111

1212
// We're setting up JSDom here because the Next.js routing instrumentations requires a few things to be present on pageload:
1313
// 1. Access to window.document API for `window.document.getElementById`
@@ -90,7 +90,7 @@ describe('Client init()', () => {
9090
});
9191

9292
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.');
9494
});
9595

9696
describe('integrations', () => {

0 commit comments

Comments
 (0)