Cover T3_NO_OPEN yes-value parsing

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