Skip to content

Commit 60682a0

Browse files
committed
test(replay): Explicitly import from index file
1 parent f7dfe95 commit 60682a0

12 files changed

+13
-13
lines changed

packages/replay/test/mocks/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { getCurrentHub } from '@sentry/core';
22

33
import { ReplayConfiguration } from '../../src/types';
4-
import { BASE_TIMESTAMP, RecordMock } from './..';
54
import { Replay } from './../../src';
5+
import { BASE_TIMESTAMP, RecordMock } from './../index';
66
import { DomHandler, MockTransportSend } from './../types';
77

88
export async function resetSdkMock(options?: ReplayConfiguration): Promise<{

packages/replay/test/unit/coreHandlers/handleFetch.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { handleFetch } from '../../../src/coreHandlers/handleFetch';
2-
import { mockSdk } from './../..';
2+
import { mockSdk } from './../../index';
33

44
jest.unmock('@sentry/browser');
55

packages/replay/test/unit/coreHandlers/handleScope-unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getCurrentHub } from '@sentry/core';
22

33
import * as HandleScope from '../../../src/coreHandlers/handleScope';
4-
import { mockSdk } from './../..';
4+
import { mockSdk } from './../../index';
55

66
let mockHandleScope: jest.MockedFunction<typeof HandleScope.handleScope>;
77

packages/replay/test/unit/createPerformanceEntry.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createPerformanceEntries } from '../../src/createPerformanceEntry';
2-
import { mockSdk } from './..';
2+
import { mockSdk } from './../index';
33

44
jest.unmock('@sentry/browser');
55

packages/replay/test/unit/eventBuffer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import 'jsdom-worker';
22

33
import pako from 'pako';
44

5-
import { BASE_TIMESTAMP } from './..';
65
import { createEventBuffer, EventBufferCompressionWorker } from './../../src/eventBuffer';
6+
import { BASE_TIMESTAMP } from './../index';
77

88
const TEST_EVENT = { data: {}, timestamp: BASE_TIMESTAMP, type: 3 };
99

packages/replay/test/unit/flush.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import * as SentryUtils from '@sentry/utils';
22

33
import { SESSION_IDLE_DURATION, WINDOW } from '../../src/constants';
4-
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from './..';
54
import { Replay } from './../../src';
65
import { createPerformanceEntries } from './../../src/createPerformanceEntry';
76
import { useFakeTimers } from './../../test/utils/use-fake-timers';
7+
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from './../index';
88

99
useFakeTimers();
1010

packages/replay/test/unit/index-errorSampleRate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ jest.unmock('@sentry/browser');
33
import { captureException } from '@sentry/browser';
44

55
import { REPLAY_SESSION_KEY, VISIBILITY_CHANGE_TIMEOUT, WINDOW } from '../../src/constants';
6-
import { BASE_TIMESTAMP, RecordMock } from './..';
76
import { Replay } from './../../src';
87
import { PerformanceEntryResource } from './../fixtures/performanceEntry/resource';
8+
import { BASE_TIMESTAMP, RecordMock } from './../index';
99
import { resetSdkMock } from './../mocks';
1010
import { DomHandler, MockTransportSend } from './../types';
1111
import { useFakeTimers } from './../utils/use-fake-timers';

packages/replay/test/unit/index-integrationSettings.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Replay } from '../../src';
2-
import { mockSdk } from './..';
2+
import { mockSdk } from './../index';
33

44
let replay: Replay;
55

packages/replay/test/unit/index-noSticky.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { Transport } from '@sentry/types';
33
import * as SentryUtils from '@sentry/utils';
44

55
import { SESSION_IDLE_DURATION, VISIBILITY_CHANGE_TIMEOUT } from '../../src/constants';
6-
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from './..';
76
import { Replay } from './../../src';
7+
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from './../index';
88
import { useFakeTimers } from './../utils/use-fake-timers';
99

1010
useFakeTimers();

packages/replay/test/unit/index-sampling.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
jest.unmock('@sentry/browser');
22

33
// mock functions need to be imported first
4-
import { mockRrweb, mockSdk } from './..';
4+
import { mockRrweb, mockSdk } from './../index';
55
import { useFakeTimers } from './../utils/use-fake-timers';
66

77
useFakeTimers();

packages/replay/test/unit/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { Replay } from '../../src';
77
import { MAX_SESSION_LIFE, REPLAY_SESSION_KEY, VISIBILITY_CHANGE_TIMEOUT, WINDOW } from '../../src/constants';
88
import { RecordingEvent } from '../../src/types';
99
import { useFakeTimers } from '../utils/use-fake-timers';
10-
import { BASE_TIMESTAMP, RecordMock } from './..';
1110
import { PerformanceEntryResource } from './../fixtures/performanceEntry/resource';
11+
import { BASE_TIMESTAMP, RecordMock } from './../index';
1212
import { resetSdkMock } from './../mocks';
1313
import { DomHandler, MockTransportSend } from './../types';
1414

packages/replay/test/unit/stop.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as SentryUtils from '@sentry/utils';
22

33
import { SESSION_IDLE_DURATION, WINDOW } from '../../src/constants';
4-
// mock functions need to be imported first
5-
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from './..';
64
import { Replay } from './../../src';
5+
// mock functions need to be imported first
6+
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from './../index';
77
import { useFakeTimers } from './../utils/use-fake-timers';
88

99
useFakeTimers();

0 commit comments

Comments
 (0)