Cover whitespace equals-style cwd rejection

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