feat(tracing): Wrap Expo Router push, replace, navigate, back, dismiss in addition to prefetch
#6221
@sentry/warden / warden: code-review
completed
Jun 2, 2026 in 8m 58s
1 issue
code-review: Found 1 issue (1 low)
Low
Test `'returns the router unchanged if prefetch method does not exist'` is stale after navigation method wrapping was added - `packages/core/test/tracing/expoRouter.test.ts:57`
The test at lines 51โ55 passes a { push: jest.fn() } router and asserts the router is "unchanged", but the new code now mutates router.push with a wrapped function and sets __sentryWrapped. The toBe (reference equality) assertion still passes, so the test silently no longer verifies its stated intent and could mask future regressions in navigation-method wrapping.
โฑ 8m 40s ยท 857.6k in / 77.2k out ยท $2.40
Loading