Cover T3_NO_OPEN on-value parsing

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-09 23:49:46 +00:00
1 parent 2bd2fe2869
commit ac6bae97fb
1 file changed
+11
+11
View File
@@ -47,6 +47,17 @@ describe("parseCliOptions", () => {
expect(options.noOpen).toBe(true);
});
it("accepts 'on' as T3_NO_OPEN truthy value", () => {
const options = parseCliOptions(
[],
{
T3_NO_OPEN: "on",
},
"/workspace",
);
expect(options.noOpen).toBe(true);
});
it("treats non-truthy T3_NO_OPEN values as disabled", () => {
const options = parseCliOptions(
[],