From 258992ad7aa36b9b2b40503cf08105860ce09f9c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 17 Feb 2026 07:17:15 +0000 Subject: [PATCH] Add CI false-alias and blank-toggle perf tests Co-authored-by: Julius Marminge --- apps/desktop/src/perfConfig.test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/desktop/src/perfConfig.test.ts b/apps/desktop/src/perfConfig.test.ts index 075a3def61..6079754c46 100644 --- a/apps/desktop/src/perfConfig.test.ts +++ b/apps/desktop/src/perfConfig.test.ts @@ -6,6 +6,8 @@ describe("shouldRunTerminalPerfInteractions", () => { it("defaults to enabled outside CI when env is unset", () => { expect(shouldRunTerminalPerfInteractions({ CI: "false" })).toBe(true); expect(shouldRunTerminalPerfInteractions({ CI: "0" })).toBe(true); + expect(shouldRunTerminalPerfInteractions({ CI: "off" })).toBe(true); + expect(shouldRunTerminalPerfInteractions({ CI: "no" })).toBe(true); expect(shouldRunTerminalPerfInteractions({ CI: undefined })).toBe(true); }); @@ -108,5 +110,17 @@ describe("shouldRunTerminalPerfInteractions", () => { CI: "ON", }), ).toBe(false); + expect( + shouldRunTerminalPerfInteractions({ + T3CODE_DESKTOP_PERF_RUN_TERMINAL: " ", + CI: "true", + }), + ).toBe(false); + expect( + shouldRunTerminalPerfInteractions({ + T3CODE_DESKTOP_PERF_RUN_TERMINAL: " ", + CI: "false", + }), + ).toBe(true); }); });