From 29371348369894313e1634ce3d94df386f1683c5 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 9 Feb 2026 23:21:51 +0000 Subject: [PATCH] Cover whitespace equals-style cwd rejection 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 78bc7b9283..53b773edec 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -132,6 +132,12 @@ describe("parseCliOptions", () => { ); }); + it("throws for whitespace-only equals-style cwd values", () => { + expect(() => parseCliOptions(["--cwd= "], {}, "/workspace")).toThrow( + "Invalid value for --cwd", + ); + }); + it("throws when cwd flag value is missing", () => { expect(() => parseCliOptions(["--cwd"], {}, "/workspace")).toThrow( "Missing value for --cwd",