Skip to content

Commit 33073e5

Browse files
committed
whyyy what is this ecosystem man
1 parent adc2c32 commit 33073e5

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

packages/nextjs/test/clientSdk.test.ts

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ import { JSDOM } from 'jsdom';
77

88
import { breadcrumbsIntegration, browserTracingIntegration, init } from '../src/client';
99

10+
jest.mock('@sentry/react', () => {
11+
return {
12+
__esModule: true,
13+
...jest.requireActual('@sentry/react'),
14+
};
15+
});
16+
1017
const reactInit = jest.spyOn(SentryReact, 'init');
1118
const loggerLogSpy = jest.spyOn(logger, 'log');
1219

packages/remix/test/index.client.test.ts

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ import * as SentryReact from '@sentry/react';
22

33
import { init } from '../src/index.client';
44

5+
jest.mock('@sentry/react', () => {
6+
return {
7+
__esModule: true,
8+
...jest.requireActual('@sentry/react'),
9+
};
10+
});
11+
512
const reactInit = jest.spyOn(SentryReact, 'init');
613

714
describe('Client init()', () => {

packages/remix/test/index.server.test.ts

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ import * as SentryNode from '@sentry/node';
22

33
import { init } from '../src/index.server';
44

5+
jest.mock('@sentry/node', () => {
6+
return {
7+
__esModule: true,
8+
...jest.requireActual('@sentry/node'),
9+
};
10+
});
11+
512
const nodeInit = jest.spyOn(SentryNode, 'init');
613

714
describe('Server init()', () => {

0 commit comments

Comments
 (0)