fix(qa): reject short flag UX evidence paths

This commit is contained in:
Vincent Koc
2026-06-21 22:15:12 +02:00
parent beebb35de4
commit 648ef73bde
2 changed files with 21 additions and 1 deletions

View File

@@ -34,6 +34,16 @@ describe("QA UX Matrix evidence producer CLI", () => {
expect(result.stderr).toBe("");
});
it("prints help after boolean options without consuming valued option slots", () => {
const result = runCli("--skip-visual-proof", "--help");
expect(result.status).toBe(0);
expect(result.stdout).toContain(
"Usage: node --import tsx scripts/qa/ux-matrix-evidence-producer.ts",
);
expect(result.stderr).toBe("");
});
it("reports invalid args without a Node stack trace", () => {
const result = runCli("--wat");