

























@@ -66,6 +66,26 @@ describe("QA UX Matrix evidence producer CLI", () => {
6666expectNoNodeStack(result.stderr);
6767});
686869+it("reports duplicate evidence producer args without a Node stack trace", () => {
70+const duplicateCases = [
71+["--artifact-base", ["--artifact-base", ".artifacts/a", "--artifact-base", ".artifacts/b"]],
72+["--repo-root", ["--artifact-base", ".artifacts/a", "--repo-root", ".", "--repo-root", ".."]],
73+[
74+"--skip-visual-proof",
75+["--artifact-base", ".artifacts/a", "--skip-visual-proof", "--skip-visual-proof"],
76+],
77+] satisfies Array<[string, string[]]>;
78+79+for (const [flag, args] of duplicateCases) {
80+const result = runCli(...args);
81+82+expect(result.status).toBe(1);
83+expect(result.stdout).toBe("");
84+expect(result.stderr.trim()).toBe(`${flag} was provided more than once`);
85+expectNoNodeStack(result.stderr);
86+}
87+});
88+6989it("reports short flag values without treating them as help", () => {
7090const artifactBaseResult = runCli("--artifact-base", "-h");
7191const repoRootResult = runCli("--artifact-base", "/tmp/openclaw-ux-test", "--repo-root", "-h");
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。