Skip to content

Commit 8f6d90b

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

12 files changed

+12
-12
lines changed

packages/replay/test/mocks/index.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 { ReplayConfiguration } from '../../src/types';
4-
import { BASE_TIMESTAMP, RecordMock } from './..';
4+
import { BASE_TIMESTAMP, RecordMock } from './../index';
55
import { Replay } from './../../src';
66
import { DomHandler, MockTransportSend } from './../types';
77

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,7 +2,7 @@ import 'jsdom-worker';
22

33
import pako from 'pako';
44

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

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

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

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

33
import { SESSION_IDLE_DURATION, WINDOW } from '../../src/constants';
4-
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from './..';
4+
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from './../index';
55
import { Replay } from './../../src';
66
import { createPerformanceEntries } from './../../src/createPerformanceEntry';
77
import { useFakeTimers } from './../../test/utils/use-fake-timers';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ 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 './..';
6+
import { BASE_TIMESTAMP, RecordMock } from './../index';
77
import { Replay } from './../../src';
88
import { PerformanceEntryResource } from './../fixtures/performanceEntry/resource';
99
import { resetSdkMock } from './../mocks';

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,7 +3,7 @@ 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 './..';
6+
import { BASE_TIMESTAMP, mockRrweb, mockSdk } from './../index';
77
import { Replay } from './../../src';
88
import { useFakeTimers } from './../utils/use-fake-timers';
99

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,7 +7,7 @@ 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 './..';
10+
import { BASE_TIMESTAMP, RecordMock } from './../index';
1111
import { PerformanceEntryResource } from './../fixtures/performanceEntry/resource';
1212
import { resetSdkMock } from './../mocks';
1313
import { DomHandler, MockTransportSend } from './../types';

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

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

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

0 commit comments

Comments
 (0)