diff --git a/apps/t3/src/runtimeApiServer.test.ts b/apps/t3/src/runtimeApiServer.test.ts index fe2ef973ba..821d3dd2ac 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -403,6 +403,16 @@ describe("runtimeApiServer", () => { ).rejects.toThrow("Invalid runtime auth token"); }); + it("rejects null auth token configuration", async () => { + await expect( + startRuntimeApiServer({ + port: 0, + launchCwd: process.cwd(), + authToken: null as unknown as string, + }), + ).rejects.toThrow("Invalid runtime auth token"); + }); + it("accepts websocket connections without token when auth is disabled", async () => { const server = await startRuntimeApiServer({ port: 0,