From 8ba5a22d456abab65c8b01c7fb8484e397dbfdbe Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 9 Feb 2026 23:09:01 +0000 Subject: [PATCH] Cover invalid backend env port parsing in CLI tests Co-authored-by: Theo Browne --- apps/t3/src/cli.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index 7f03e4377f..b4c59d2a52 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -86,6 +86,12 @@ describe("parseCliOptions", () => { ); }); + it("throws for invalid backend environment port values", () => { + expect(() => parseCliOptions([], { T3_BACKEND_PORT: "nope" }, "/workspace")).toThrow( + "Invalid value for T3_BACKEND_PORT", + ); + }); + it("throws for empty cwd flag values", () => { expect(() => parseCliOptions(["--cwd="], {}, "/workspace")).toThrow( "Invalid value for --cwd",