Cover whitespace-only launchCwd startup rejection

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