Skip to content

Commit 558f83d

Browse files
committed
test(replay): Fix test
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 558f83d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

55
import type { Replay } from '../../src';
6+
import { EventType } from '../../src';
67
import type { ReplayContainer } from '../../src/replay';
78
import { clearSession } from '../../src/session/clearSession';
8-
import { EventType } from '../../src/types';
99
import * as SendReplayRequest from '../../src/util/sendReplayRequest';
1010
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from '../index';
1111
import { useFakeTimers } from '../utils/use-fake-timers';
@@ -55,7 +55,7 @@ describe('Integration | beforeAddRecordingEvent', () => {
5555

5656
// This should not do anything because callback should not be called
5757
// for `event.type != 5` - but we guard anyhow to be safe
58-
if ((event.type as EventType) === EventType.FullSnapshot) {
58+
if ((event.type as EventType) === 2) {
5959
return null;
6060
}
6161

0 commit comments

Comments
 (0)