From eef8485eb4b51e241911c442bdfbdf2d3b9fa76c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:44:50 +0000 Subject: [PATCH] Cover null runtime port startup rejection Co-authored-by: Theo Browne --- apps/t3/src/runtimeApiServer.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/t3/src/runtimeApiServer.test.ts b/apps/t3/src/runtimeApiServer.test.ts index 230f9abdec..9b95c9f2d5 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -203,6 +203,15 @@ describe("runtimeApiServer", () => { ).rejects.toThrow("Invalid runtime port"); }); + it("rejects startup when runtime port is null", async () => { + await expect( + startRuntimeApiServer({ + port: null as unknown as number, + launchCwd: process.cwd(), + }), + ).rejects.toThrow("Invalid runtime port"); + }); + it("rejects startup when runtime port is infinite", async () => { await expect( startRuntimeApiServer({