diff --git a/apps/t3/src/runtimeApiServer.test.ts b/apps/t3/src/runtimeApiServer.test.ts index 6726ead552..ef737d3225 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -176,6 +176,15 @@ describe("runtimeApiServer", () => { ).rejects.toThrow("Invalid runtime port"); }); + it("rejects startup when runtime port is non-integer", async () => { + await expect( + startRuntimeApiServer({ + port: 4317.5, + launchCwd: process.cwd(), + }), + ).rejects.toThrow("Invalid runtime port"); + }); + it("allows runtime server close to be called multiple times", async () => { const server = await startRuntimeApiServer({ port: 0,