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",