Skip to content

Commit 015247c

Browse files
committed
Switch back to the original implementation.
1 parent b04aa2a commit 015247c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

packages/react/test/reactrouterv6.test.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -529,14 +529,8 @@ describe('reactRouterV6BrowserTracingIntegration', () => {
529529
);
530530

531531
expect(mockStartBrowserTracingPageLoadSpan).toHaveBeenCalledTimes(1);
532-
expect(mockStartBrowserTracingPageLoadSpan).toHaveBeenLastCalledWith(expect.any(BrowserClient), {
533-
name: '/projects/:projectId/views/:viewId',
534-
attributes: {
535-
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',
536-
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'pageload',
537-
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.pageload.react.reactrouter_v6',
538-
},
539-
});
532+
expect(mockRootSpan.updateName).toHaveBeenLastCalledWith('/projects/:projectId/views/:viewId');
533+
expect(mockRootSpan.setAttribute).toHaveBeenLastCalledWith(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route');
540534
});
541535

542536
it('works with descendant wildcard routes - navigation', () => {
@@ -565,6 +559,7 @@ describe('reactRouterV6BrowserTracingIntegration', () => {
565559
</Route>
566560
</Route>
567561
<Route path="*" element={<div>No Match Page</div>} />
562+
<Route path="/404" element={<div>404</div>} />
568563
</SentryRoutes>
569564
);
570565

0 commit comments

Comments
 (0)