Cover falsey T3_NO_OPEN environment parsing

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 04:58:36 +00:00
1 parent 0e775333a0
commit b16ca1c9ee
1 file changed
+11
+11
View File
@@ -81,6 +81,17 @@ describe("parseCliOptions", () => {
expect(options.noOpen).toBe(true);
});
it("treats falsey T3_NO_OPEN values as disabled", () => {
const options = parseCliOptions(
[],
{
T3_NO_OPEN: "off",
},
"/workspace",
);
expect(options.noOpen).toBe(false);
});
it("accepts trimmed uppercase truthy values for T3_NO_OPEN", () => {
const options = parseCliOptions(
[],