From c9d8c648097f1ebe30e4eb4a5e90d8bcf620a746 Mon Sep 17 00:00:00 2001 From: greatest0fallt1me Date: Sun, 25 Oct 2026 01:11:13 +0530 Subject: [PATCH] test(smoke): expect DEMO_MODE_UNSUPPORTED from demo-guarded routes #1526 added the demo guard, which returns DEMO_MODE_UNSUPPORTED (503) for routes that need a database. Update the Vercel bundle smoke check to match. Co-Authored-By: Claude Opus 5.5 --- scripts/smoke-vercel-bundle.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/smoke-vercel-bundle.mjs b/scripts/smoke-vercel-bundle.mjs index 2c1c0911..41514e98 100644 --- a/scripts/smoke-vercel-bundle.mjs +++ b/scripts/smoke-vercel-bundle.mjs @@ -74,8 +74,8 @@ try { ); assert.equal( prismaJson.error?.code, - "SERVICE_UNAVAILABLE", - `Expected SERVICE_UNAVAILABLE error code, got ${prismaJson.error?.code}`, + "DEMO_MODE_UNSUPPORTED", + `Expected DEMO_MODE_UNSUPPORTED error code, got ${prismaJson.error?.code}`, ); console.log("[smoke] ✅ GET /api/invoices returned demo 503 envelope (not module resolution crash)");