Cover missing --cwd value parsing error

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-09 23:18:55 +00:00
1 parent b708a4ec89
commit 37cd2b696b
1 file changed
+6
+6
View File
@@ -110,6 +110,12 @@ describe("parseCliOptions", () => {
);
});
it("throws when cwd flag value is missing", () => {
expect(() => parseCliOptions(["--cwd"], {}, "/workspace")).toThrow(
"Missing value for --cwd",
);
});
it("throws for whitespace-only cwd flag values", () => {
expect(() => parseCliOptions(["--cwd", " "], {}, "/workspace")).toThrow(
"Invalid value for --cwd",