Cover trimmed uppercase T3_NO_OPEN falsey parsing

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 04:56:11 +00:00
1 parent 4627c42841
commit 8364f8a166
1 file changed
+11
+11
View File
@@ -92,6 +92,17 @@ describe("parseCliOptions", () => {
expect(options.noOpen).toBe(true);
});
it("treats trimmed uppercase falsey values for T3_NO_OPEN as disabled", () => {
const options = parseCliOptions(
[],
{
T3_NO_OPEN: "\tOFF\t",
},
"/workspace",
);
expect(options.noOpen).toBe(false);
});
it("supports explicit equals-style --no-open boolean overrides", () => {
const options = parseCliOptions(
["--no-open=false"],