Skip to content

Commit 5bc01a0

Browse files
committed
fix(e2e): Explicitly disable Spotlight in react-router-7-lazy-routes test
The PR adds automatic Spotlight detection via environment variables. This test is about transaction timing behavior, not Spotlight functionality. Explicitly disabling Spotlight prevents it from being auto-enabled, which was causing the transaction to finish prematurely (0.006s instead of 5+ seconds).
1 parent ce30f02 commit 5bc01a0

File tree

1 file changed

+3
-0
lines changed
  • dev-packages/e2e-tests/test-applications/react-router-7-lazy-routes/src

1 file changed

+3
-0
lines changed

dev-packages/e2e-tests/test-applications/react-router-7-lazy-routes/src/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ Sentry.init({
7777
release: 'e2e-test',
7878

7979
tunnel: 'http://localhost:3031',
80+
// Explicitly disable Spotlight to prevent auto-enablement from env vars
81+
// This test is about transaction timing, not Spotlight functionality
82+
spotlight: false,
8083
});
8184

8285
const sentryCreateBrowserRouter = Sentry.wrapCreateBrowserRouterV7(createBrowserRouter);

0 commit comments

Comments
 (0)