Cover null runtime port startup rejection

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 04:44:50 +00:00
1 parent 933cc42054
commit eef8485eb4
1 file changed
+9
+9
View File
@@ -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({