Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions packages/react/test/reactrouter-cross-usage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ vi.mock('@sentry/browser', async requireActual => {
};
});

vi.mock('@sentry/core', async requireActual => {
return {
...(await requireActual()),
getRootSpan: () => {
return mockRootSpan;
},
};
});

vi.mock('@sentry/core', async requireActual => {
const actual = (await requireActual()) as any;
return {
Expand All @@ -82,6 +73,8 @@ vi.mock('@sentry/core', async requireActual => {
getActiveSpan: () => {
const span = actual.getActiveSpan();

if (!span) return undefined;

span.updateName = mockNavigationSpan.updateName;
span.setAttribute = mockNavigationSpan.setAttribute;

Expand Down
Loading