Cover trimmed equals-style --no-open parsing

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 01:49:51 +00:00
1 parent 2fbf261d52
commit 6ce75a0b3a
1 file changed
+5
+5
View File
@@ -92,6 +92,11 @@ describe("parseCliOptions", () => {
expect(options.noOpen).toBe(true);
});
it("trims equals-style --no-open values before parsing", () => {
const options = parseCliOptions(["--no-open= no "], { T3_NO_OPEN: "true" }, "/workspace");
expect(options.noOpen).toBe(false);
});
it("parses case-insensitive and trimmed T3_NO_OPEN truthy values", () => {
const options = parseCliOptions(
[],