runner-debug-storage-rollback.test.ts 465 B

1234567891011121314
  1. import { readFile } from "node:fs/promises";
  2. import { describe, expect, it } from "vitest";
  3. describe("runner debug storage rollback", () => {
  4. it("不再引用已删除的 storage profile 模块", async () => {
  5. const source = await readFile(
  6. new URL("../src/model/runner-debug.ts", import.meta.url),
  7. "utf8",
  8. );
  9. expect(source).not.toContain("zcode-storage-root");
  10. expect(source).toContain('join(homedir(), ".zcode", "cli"');
  11. });
  12. });