将内部脚本归入 build、release、generate、dev 和 checks,保留公开安装脚本路径。 同步命令、CI、发布流程、脚本间调用及根目录定位,补齐脚本说明与完成报告。 验证:929 项测试、类型与版本检查通过;二进制及插件构建、冒烟与打包通过。 OpenAPI 产物不变;工作流 Schema 导出存在基线即可复现的 Zod transform 错误,单独记录。
18 lines
675 B
TypeScript
18 lines
675 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
import { globalBinCandidates, parseDevOverrideArgs } from "./dev-override.js";
|
|
|
|
describe("dev:override", () => {
|
|
test("parses dry-run and explicit target path without touching the host", () => {
|
|
expect(parseDevOverrideArgs(["--dry-run", "--target-path=/tmp/hose-use-test"])).toEqual({
|
|
dryRun: true,
|
|
targetPath: "/tmp/hose-use-test",
|
|
});
|
|
});
|
|
|
|
test("uses stable global binary locations", () => {
|
|
const candidates = globalBinCandidates("hose-use-test");
|
|
expect(candidates.some((candidate) => candidate.endsWith("/hose-use-test"))).toBe(true);
|
|
expect(candidates).toHaveLength(4);
|
|
});
|
|
});
|