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({