From 37cd2b696bf7811de7d50581e6f18f082c6e4455 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 9 Feb 2026 23:18:55 +0000 Subject: [PATCH] Cover missing --cwd value parsing error Co-authored-by: Theo Browne --- apps/t3/src/cli.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index 5c1f773d26..a445180f0f 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -110,6 +110,12 @@ describe("parseCliOptions", () => { ); }); + it("throws when cwd flag value is missing", () => { + expect(() => parseCliOptions(["--cwd"], {}, "/workspace")).toThrow( + "Missing value for --cwd", + ); + }); + it("throws for whitespace-only cwd flag values", () => { expect(() => parseCliOptions(["--cwd", " "], {}, "/workspace")).toThrow( "Invalid value for --cwd",