From ce28d5b09d551def6597e6038b5236046661e24c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 17 Feb 2026 06:58:43 +0000 Subject: [PATCH] Expand terminal perf toggle parser test coverage Co-authored-by: Julius Marminge --- apps/desktop/src/perfConfig.test.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/apps/desktop/src/perfConfig.test.ts b/apps/desktop/src/perfConfig.test.ts index 3ad23297be..75fdbf57f0 100644 --- a/apps/desktop/src/perfConfig.test.ts +++ b/apps/desktop/src/perfConfig.test.ts @@ -25,6 +25,12 @@ describe("shouldRunTerminalPerfInteractions", () => { CI: "true", }), ).toBe(true); + expect( + shouldRunTerminalPerfInteractions({ + T3CODE_DESKTOP_PERF_RUN_TERMINAL: "TRUE", + CI: "true", + }), + ).toBe(true); }); it("supports explicit false values", () => { @@ -40,5 +46,26 @@ describe("shouldRunTerminalPerfInteractions", () => { CI: "false", }), ).toBe(false); + expect( + shouldRunTerminalPerfInteractions({ + T3CODE_DESKTOP_PERF_RUN_TERMINAL: "FALSE", + CI: "false", + }), + ).toBe(false); + }); + + it("falls back to CI-based default for unknown values", () => { + expect( + shouldRunTerminalPerfInteractions({ + T3CODE_DESKTOP_PERF_RUN_TERMINAL: "maybe", + CI: "true", + }), + ).toBe(false); + expect( + shouldRunTerminalPerfInteractions({ + T3CODE_DESKTOP_PERF_RUN_TERMINAL: "maybe", + CI: "false", + }), + ).toBe(true); }); });