Cover empty equals-style --open parsing errors

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 02:35:33 +00:00
1 parent f96ecb6d06
commit d95e2fc125
1 file changed
+6
+6
View File
@@ -151,6 +151,12 @@ describe("parseCliOptions", () => {
);
});
it("throws for empty equals-style --open values", () => {
expect(() => parseCliOptions(["--open="], {}, "/workspace")).toThrow(
"Invalid value for --open",
);
});
it("supports falsey equals-style --no-open values", () => {
const options = parseCliOptions(["--no-open=0"], {}, "/workspace");
expect(options.noOpen).toBe(false);