Cover trimmed uppercase T3_NO_OPEN truthy parsing

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