diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index 03e32a846f..9bd095e255 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -473,6 +473,12 @@ describe("parseCliOptions", () => { ); }); + it("treats --open after --cwd as missing value", () => { + expect(() => parseCliOptions(["--cwd", "--open"], {}, "/workspace")).toThrow( + "Missing value for --cwd", + ); + }); + it("treats end-of-options marker after --cwd as missing value", () => { expect(() => parseCliOptions(["--cwd", "--"], {}, "/workspace")).toThrow( "Missing value for --cwd",