test(rectification): isolate the open-route domain test from the account-deletion freeze merged on staging; local Docker DB checklist (BUG-1131)
Staging 96adbce3 added refuseWhenAccountDeletionPending to the open route; the
domain test's call counter saw its service RPC. The freeze has its own suite,
so the test mocks it as not frozen; the invalid-source assertion is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017eEAG8HD3mm8gsKXgk8uU8
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
73605c3b8e
commit
eded9c724e
@@ -66,6 +66,8 @@ test("production open route reads owned consultation themes and fixes new-case t
|
||||
})}});
|
||||
mock.module('@/lib/supabase/admin',{namedExports:{createAdminSupabaseClient:()=>accounting}});
|
||||
mock.module('@/lib/product-access',{namedExports:{isProductEnabled:async()=>true}});
|
||||
// Account-deletion freeze (staging 96adbce3) has its own suite; here the account is not frozen.
|
||||
mock.module('@/lib/account-deletion-server',{namedExports:{refuseWhenAccountDeletionPending:async()=>null}});
|
||||
const {POST}=await import(pathToFileURL(process.cwd()+'/src/app/api/rectification/cases/open/route.ts').href);
|
||||
const post=async(body)=>POST(new Request('https://example.invalid/api/rectification/cases/open',{method:'POST',headers:{'content-type':'application/json'},body:JSON.stringify(body)}));
|
||||
const body={intent:'homepage',requestId:'55555555-5555-4555-8555-555555555555',sourceSessionId:sourceId};
|
||||
|
||||
Reference in New Issue
Block a user