We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a76788 commit 129820fCopy full SHA for 129820f
packages/replay/jest.setup.ts
@@ -1,12 +1,15 @@
1
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
2
import { getCurrentHub } from '@sentry/core';
3
import type { ReplayRecordingData, Transport } from '@sentry/types';
4
+import {TextEncoder} from 'util';
5
6
import type { ReplayContainer, Session } from './src/types';
7
8
// @ts-ignore TS error, this is replaced in prod builds bc of rollup
9
global.__SENTRY_REPLAY_VERSION__ = 'version:Test';
10
11
+(global as any).TextEncoder = TextEncoder;
12
+
13
type MockTransport = jest.MockedFunction<Transport['send']>;
14
15
jest.mock('./src/util/isBrowser', () => {
0 commit comments