本文へスキップ
Kitbay
スキル公式

studio-mock-api-tests

Apache-2.02026年11月11日 更新114,826GitHubスター

A maintainer skill in the Supabase monorepo for component tests in Supabase Studio that mock the network with Mock Service Worker instead of mocking data modules.

スキルの内容

A maintainer skill in the Supabase monorepo for component tests in Supabase Studio that mock the network with Mock Service Worker instead of mocking data modules. The agent renders the component with the project's custom render helper, registers typed handlers for every endpoint the component and its children call, and asserts on what appears on screen, checking request bodies only when the interface does not show the result. Its rules cover path parameter syntax, always answering through the JSON response helper so the fetch client does not hang, form events in sheets and modals, profile and route mocks, permission fixtures and listeners for finding requests that no handler matched.

できること

  • Mock Studio API calls with typed MSW handlers
  • Assert on rendered UI state
  • Mock permissions and routes in tests
  • Find requests no handler matched