Expand --no-open equals-value parser coverage

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 01:47:31 +00:00
1 parent d943f75b7c
commit 3397175977
1 file changed
+11
+11
View File
@@ -81,6 +81,17 @@ describe("parseCliOptions", () => {
);
});
it("throws for empty equals-style --no-open values", () => {
expect(() => parseCliOptions(["--no-open="], {}, "/workspace")).toThrow(
"Invalid value for --no-open",
);
});
it("parses case-insensitive equals-style --no-open values", () => {
const options = parseCliOptions(["--no-open=ON"], {}, "/workspace");
expect(options.noOpen).toBe(true);
});
it("parses case-insensitive and trimmed T3_NO_OPEN truthy values", () => {
const options = parseCliOptions(
[],