Skip to content

Commit dabe44c

Browse files
committed
ref(replay): Do not import replay mock via await
1 parent 7c3d924 commit dabe44c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/replay/test/mocks/resetSdkMock.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getCurrentHub } from '@sentry/core';
33
import { ReplayContainer } from '../../src/replay';
44
import { BASE_TIMESTAMP, RecordMock } from './../index';
55
import { DomHandler, MockTransportSend } from './../types';
6-
import { MockSdkParams } from './mockSdk';
6+
import { mockSdk, MockSdkParams } from './mockSdk';
77

88
export async function resetSdkMock({ replayOptions, sentryOptions }: MockSdkParams): Promise<{
99
domHandler: DomHandler;
@@ -36,7 +36,6 @@ export async function resetSdkMock({ replayOptions, sentryOptions }: MockSdkPara
3636
const SentryCore = await import('@sentry/core');
3737
const spyCaptureException = jest.spyOn(SentryCore, 'captureException');
3838

39-
const { mockSdk } = await import('./mockSdk');
4039
const { replay } = await mockSdk({
4140
replayOptions,
4241
sentryOptions,

0 commit comments

Comments
 (0)