You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8aefac0
Browse filesBrowse the repository at this point in the historyBrowse files
test(e2e): Add Bun, Deno and Cloudflare variants to react-router-8-framework
Runs the same Playwright suite on Bun, Deno and Cloudflare (local workerd)
as optional variants of the existing app, instead of one app per runtime.
A variant can set a `runtime` matrix key (`bun` or `deno`), and CI then
installs that runtime for the job. The Cloudflare build uses its own Vite
config with `@cloudflare/vite-plugin` and `sentryCloudflareVitePlugin`,
and swaps in a workerd server entry with the new `runtimeEntryPlugin`
from `@sentry-internal/test-utils/vite`.
Getting the variants green needed these SDK fixes:
- react-router: resolve the Cloudflare entry under the `workerd`
condition, so `Sentry.flush` and `Sentry.startSpan` exist in a Worker.
- react-router: export `createSentryHandleError` and
`lowQualityTransactionsFilterIntegration` from `/cloudflare`.
- react-router: do not write trace meta tags into prerendered pages, which
otherwise pinned every visitor of the static page to one build-time trace.
- react-router: name an index route after its nearest ancestor path, or
`/`. It has no `path` of its own, so without an Express layer (Bun,
Cloudflare) the index page got no route name.
- cloudflare: set the request as the transaction name, like Node does.
- server-utils: write bare builtin imports of force-bundled dependencies
with the `node:` prefix, which Deno before 2.9 needs.
Under `bun run` Express is not instrumented, so on Bun (as on Cloudflare)
the error transaction stays the request path and the meta tag names the
http.server segment. The Bun variant relies on the diagnostics channel
fixes of the Bun auto-instrumentation suites PR it is based on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: dev-packages/e2e-tests/test-applications/react-router-8-framework/app/routes/performance/with-middleware.tsx
Copy file name to clipboardExpand all lines: dev-packages/e2e-tests/test-applications/react-router-8-framework/tests/performance/navigation.client.test.ts
0 commit comments