Skip to content

Commit 8934ccc

Browse files
authored
test(replay): Fix test (#8310)
Not sure how this happened and how that didn't fail before, but this is failing on master as of now...
1 parent b877c10 commit 8934ccc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/replay/test/integration/beforeAddRecordingEvent.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ import * as SentryCore from '@sentry/core';
22
import type { Transport } from '@sentry/types';
33
import * as SentryUtils from '@sentry/utils';
44

5-
import type { Replay } from '../../src';
5+
import type { EventType, Replay } from '../../src';
66
import type { ReplayContainer } from '../../src/replay';
77
import { clearSession } from '../../src/session/clearSession';
8-
import { EventType } from '../../src/types';
98
import * as SendReplayRequest from '../../src/util/sendReplayRequest';
109
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from '../index';
1110
import { useFakeTimers } from '../utils/use-fake-timers';
@@ -55,7 +54,7 @@ describe('Integration | beforeAddRecordingEvent', () => {
5554

5655
// This should not do anything because callback should not be called
5756
// for `event.type != 5` - but we guard anyhow to be safe
58-
if ((event.type as EventType) === EventType.FullSnapshot) {
57+
if ((event.type as EventType) === 2) {
5958
return null;
6059
}
6160

0 commit comments

Comments
 (0)