API-key minting (local e2e)
How to unlock api_access and mint a raw CLIENT or SERVER key against the local backend for SDK live-e2e runs.
Test Stack Runbook
Techniques for driving auth, link-creation, link-management, and portal-shell flows against the deployed stack in live-audit sessions — sign-in traps, quota filling, the short-code probe, impersonation-exit traps, and link-quota hygiene.
Real-token HTTP testing
The canonical recipe for exercising local backend endpoints with a real org-active Clerk session token — plus the fixture preconditions and a full signup-to-gate E2E example.
Mirroring Clerk events into the local DB
The two ways to get a Clerk event into your local database for testing — live relay delivery and signed-payload replay — plus the 400 sanity probes for the webhook endpoint.
Cleaning up test entities
Tearing down the ephemeral Clerk users/orgs and DB rows a testing session created — and the entities you must never delete.
Service-level probe
Exercising a backend service method against the real database with no HTTP and no auth — a Nest application context via ts-node.
Org-creation flow probe
Testing POST /portal/onboarding/create-organization end-to-end with raw curl against the Clerk Backend API — proves the FB-1 invariant (owner role stamped before the first org-scoped token).
Half-onboarded org fixture
Producing a non-owner member of an org whose onboarding gates are still tripped — the fixture the UX-4 "waiting on owner" banner needs (FLOW-002).