diff --git a/apps/t3/src/runtimeApiServer.test.ts b/apps/t3/src/runtimeApiServer.test.ts index fdb8832cf8..fe2ef973ba 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -275,6 +275,15 @@ describe("runtimeApiServer", () => { ).rejects.toThrow("Invalid launchCwd must be a non-empty path"); }); + it("rejects startup when launchCwd is only whitespace", async () => { + await expect( + startRuntimeApiServer({ + port: 0, + launchCwd: " ", + }), + ).rejects.toThrow("Invalid launchCwd must be a non-empty path"); + }); + it("rejects startup when launchCwd is not a string", async () => { await expect( startRuntimeApiServer({