supabase-reset-test-gen-loop
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSupabase Reset / Test / Gen Loop
Supabase 重置/测试/生成循环
Workflow
工作流程
- Confirm working directory contains the intended config and
supabase/.package.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.
- 确认工作目录包含目标配置文件和
supabase/。package.json - 运行循环:
supabase db reset && supabase test db && npm run gen-types
- 如果命令执行失败,读取错误输出,修复根本问题后重新运行相同命令。
- 持续执行直至命令成功完成。
- 如果修复后相同错误重复出现,暂停并向用户寻求指导。
Notes
注意事项
- Use (not
supabase test db) for running pgTAP tests.supabase db test - If the project requires environment setup (e.g., ), ensure it is running before the loop.
supabase start
- 请使用(而非
supabase test db)来运行pgTAP测试。supabase db test - 如果项目需要环境设置(例如),请确保在循环运行前已启动该环境。
supabase start