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
- •
- •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.