Write Supabase Edge Functions You Can Actually Test: Handlers, RLS, Errors, and a Local Loop
A structure for Edge Functions that makes them testable in seconds: pure handlers, user-scoped clients, explicit error responses, and tests against a local backend