diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index 1d9acec4e8..0214e11702 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -404,6 +404,12 @@ describe("parseCliOptions", () => { ).toThrow("Missing value for --backend-port"); }); + it("treats --open equals-style tokens after --backend-port as missing values", () => { + expect(() => + parseCliOptions(["--backend-port", "--open=false"], {}, "/workspace"), + ).toThrow("Missing value for --backend-port"); + }); + it("treats end-of-options marker after --backend-port as missing value", () => { expect(() => parseCliOptions(["--backend-port", "--"], {}, "/workspace")).toThrow( "Missing value for --backend-port", @@ -434,6 +440,12 @@ describe("parseCliOptions", () => { ).toThrow("Missing value for --web-port"); }); + it("treats --open equals-style tokens after --web-port as missing values", () => { + expect(() => parseCliOptions(["--web-port", "--open=true"], {}, "/workspace")).toThrow( + "Missing value for --web-port", + ); + }); + it("treats end-of-options marker after --web-port as missing value", () => { expect(() => parseCliOptions(["--web-port", "--"], {}, "/workspace")).toThrow( "Missing value for --web-port",