import { test, expect } from "bun:test"; import type { Task } from "@bbbug/shared/types"; const runner = await import("../src/runner"); const base = { id: "task-1", meegoUrl: null, title: "Story 相机特效面板打不开", platform: "android", bugType: "UI", difficulty: "medium", attempts: 0, description: "点击特效按钮无反应", reproSteps: "1. 打开 Story", lang: "zh", reviewHistory: [], reviewFeedback: null, } as unknown as Task; test("真机复跑任务的第 5 步换成「不要 push、不要建 MR」", () => { const normal = runner.buildSinglePrompt(base, "/tmp/ws", false, 0); const lab = runner.buildSinglePrompt({ ...base, id: "rsi-lab-0000" } as Task, "/tmp/ws", false, 0); expect(normal).toContain("git push -u origin"); expect(lab).not.toContain("git push -u origin"); expect(lab).toContain("RSI 真机复跑"); expect(lab).toContain("不要 push、不要建 MR"); });