Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
fixup! test(astro,cloudflare): Add an E2E test for Astro 6 on Cloudflare
  • Loading branch information
JPeer264 committed Mar 12, 2026
commit e0e945690c7a40464ad065f1d2fc2ad14e57f4e9
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import * as Sentry from '@sentry/cloudflare';
import handler from "@astrojs/cloudflare/entrypoints/server";
import handler from '@astrojs/cloudflare/entrypoints/server';

export default Sentry.withSentry((env) => ({
dsn: env.E2E_TEST_DSN,
environment: 'qa',
tracesSampleRate: 1.0,
tunnel: 'http://localhost:3031/', // proxy server
debug: true,
}), handler);
export default Sentry.withSentry(
env => ({
dsn: env.E2E_TEST_DSN,
environment: 'qa',
tracesSampleRate: 1.0,
tunnel: 'http://localhost:3031/', // proxy server
debug: true,
}),
handler,
);
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ test.describe('nested SSR routes (client, server, server request)', () => {
expect(serverHTTPServerRequestTxn.contexts?.trace?.parent_span_id).toEqual(serverRequestHTTPClientSpan?.span_id);
});

// Astro 6 lowercases routePattern and the internal manifest access (Symbol.for('context.routes'))
// no longer works, so route names are lowercased (e.g. [userid] instead of [userId]).
test('sends parametrized pageload, server and API request transaction names', async ({ page }) => {
const clientPageloadTxnPromise = waitForTransaction('astro-6-cf-workers', txnEvent => {
return txnEvent?.transaction?.startsWith('/user-page/') ?? false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"extends": "astro/tsconfigs/strict",
"include": [
".astro/types.d.ts",
"**/*",
"./worker-configuration.d.ts"
],
"exclude": [
"dist"
]
}
"include": [".astro/types.d.ts", "**/*", "./worker-configuration.d.ts"],
"exclude": ["dist"]
}
Loading
Loading