diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index b94e16e6e1..78af6fa84b 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -223,6 +223,12 @@ describe("parseCliOptions", () => { ); }); + it("throws for out-of-range backend environment port values", () => { + expect(() => parseCliOptions([], { T3_BACKEND_PORT: "65536" }, "/workspace")).toThrow( + "Invalid value for T3_BACKEND_PORT", + ); + }); + it("throws for invalid backend environment port values", () => { expect(() => parseCliOptions([], { T3_BACKEND_PORT: "nope" }, "/workspace")).toThrow( "Invalid value for T3_BACKEND_PORT",