From 339717597780d4cd1248e16d557dbaff0fff4aa9 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 01:47:31 +0000 Subject: [PATCH] Expand --no-open equals-value parser coverage 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 c04e8cd9e4..0a862870e4 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -81,6 +81,17 @@ describe("parseCliOptions", () => { ); }); + it("throws for empty equals-style --no-open values", () => { + expect(() => parseCliOptions(["--no-open="], {}, "/workspace")).toThrow( + "Invalid value for --no-open", + ); + }); + + it("parses case-insensitive equals-style --no-open values", () => { + const options = parseCliOptions(["--no-open=ON"], {}, "/workspace"); + expect(options.noOpen).toBe(true); + }); + it("parses case-insensitive and trimmed T3_NO_OPEN truthy values", () => { const options = parseCliOptions( [],