Supabase Reset / Test / Gen Loop
Workflow
- Confirm working directory contains the intended
supabase/config andpackage.json. - Run the loop:
supabase db reset && supabase test db && npm run gen-types- Run this as a single sequential shell command joined with
&&. - Do not split these steps across subagents or run them in parallel.
- If the command fails, read the error output, fix the underlying issue, and rerun the same command.
- Continue until the command completes successfully.
- If the same error repeats after fixes, pause and ask the user for guidance.
Notes
- Use
supabase test db(notsupabase db test) for running pgTAP tests. - If the project requires environment setup (e.g.,
supabase start), ensure it is running before the loop. - Subagents are appropriate only for independent analysis/fix work, not for executing this ordered command chain.