mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-09 03:22:40 +00:00
fix(qa): reject short flag UX evidence paths
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user