studio-mock-api-tests

Component tests for Supabase Studio that mock API requests at the network layer with MSW. Use when writing or reviewing a component test that exercises a React Query hook or mutation, or when migrating an existing test away from vi.mock('@/data/...'). Covers the customRender + addAPIMock template and the jsdom/MSW gotchas that cost real debugging time.

SKILL.md26585dd4a4d6
Loading supporting files

Comments: 0

Be the first to comment

Share what worked or leave a question for the creator.

Log in to comment

supabase/supabase · Apache-2.0 · Revision 26585dd4a4d6

development testing