From a2240c43830e29c1d85667f4c610655d6b10253f Mon Sep 17 00:00:00 2001 From: Adam Chalemian Date: Wed, 5 Aug 2026 16:48:32 -0400 Subject: [PATCH] fix(test): provide experimental config in Cloudflare session-false test (#17606) The Cloudflare adapter's `astro:config:setup` reads `config.experimental.collectionStorage` (added in #17543). The mock config in this test omitted `experimental` entirely, so the hook threw `TypeError: Cannot read properties of undefined (reading 'collectionStorage')`. A resolved `AstroConfig` always has this key populated, since the schema defaults it to `'single-file'`, so the mock was the incomplete party rather than the adapter. Set it explicitly to match a real config. This surfaced only after #16871 and #17543 landed together: this PR's checks last ran before #17543 merged, so neither PR's CI ever exercised the combination. --- packages/integrations/cloudflare/test/session-false.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/integrations/cloudflare/test/session-false.test.ts b/packages/integrations/cloudflare/test/session-false.test.ts index 6d9aaf5d694a..0ef95e8aeed1 100644 --- a/packages/integrations/cloudflare/test/session-false.test.ts +++ b/packages/integrations/cloudflare/test/session-false.test.ts @@ -32,6 +32,7 @@ async function runConfigSetup(session: unknown) { outDir: new URL('./dist/', root), cacheDir: new URL('./.astro/', root), build: { client: new URL('./dist/client/', root), server: new URL('./dist/server/', root) }, + experimental: { collectionStorage: 'single-file' }, vite: {}, }, logger: {