Cover unknown T3_NO_OPEN value handling

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