supabase-reset-test-gen-loop

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Supabase Reset / Test / Gen Loop

Supabase 重置/测试/生成循环

Workflow

工作流程

  1. Confirm working directory contains the intended
    supabase/
    config and
    package.json
    .
  2. Run the loop:
    • supabase db reset && supabase test db && npm run gen-types
  3. If the command fails, read the error output, fix the underlying issue, and rerun the same command.
  4. Continue until the command completes successfully.
  5. If the same error repeats after fixes, pause and ask the user for guidance.
  1. 确认工作目录包含目标
    supabase/
    配置文件和
    package.json
  2. 运行循环:
    • supabase db reset && supabase test db && npm run gen-types
  3. 如果命令执行失败,读取错误输出,修复根本问题后重新运行相同命令。
  4. 持续执行直至命令成功完成。
  5. 如果修复后相同错误重复出现,暂停并向用户寻求指导。

Notes

注意事项

  • Use
    supabase test db
    (not
    supabase db test
    ) for running pgTAP tests.
  • If the project requires environment setup (e.g.,
    supabase start
    ), ensure it is running before the loop.
  • 请使用
    supabase test db
    (而非
    supabase db test
    )来运行pgTAP测试。
  • 如果项目需要环境设置(例如
    supabase start
    ),请确保在循环运行前已启动该环境。