From db8a36fc741506db005e2f2029dc644d85065f53 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 9 Feb 2026 23:48:33 +0000 Subject: [PATCH] Cover case-insensitive T3_NO_OPEN parsing Co-authored-by: Theo Browne --- apps/t3/src/cli.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index b23c83fb0f..2634d48c93 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -36,6 +36,17 @@ describe("parseCliOptions", () => { expect(options.noOpen).toBe(true); }); + it("parses case-insensitive and trimmed T3_NO_OPEN truthy values", () => { + 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( [],