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