diff --git a/packages/replay/test/integration/beforeAddRecordingEvent.test.ts b/packages/replay/test/integration/beforeAddRecordingEvent.test.ts index b0f2211ed7e2..ba1a63d904fd 100644 --- a/packages/replay/test/integration/beforeAddRecordingEvent.test.ts +++ b/packages/replay/test/integration/beforeAddRecordingEvent.test.ts @@ -2,10 +2,9 @@ import * as SentryCore from '@sentry/core'; import type { Transport } from '@sentry/types'; import * as SentryUtils from '@sentry/utils'; -import type { Replay } from '../../src'; +import type { EventType, Replay } from '../../src'; import type { ReplayContainer } from '../../src/replay'; import { clearSession } from '../../src/session/clearSession'; -import { EventType } from '../../src/types'; import * as SendReplayRequest from '../../src/util/sendReplayRequest'; import { BASE_TIMESTAMP, mockRrweb, mockSdk } from '../index'; import { useFakeTimers } from '../utils/use-fake-timers'; @@ -55,7 +54,7 @@ describe('Integration | beforeAddRecordingEvent', () => { // This should not do anything because callback should not be called // for `event.type != 5` - but we guard anyhow to be safe - if ((event.type as EventType) === EventType.FullSnapshot) { + if ((event.type as EventType) === 2) { return null; }