History

Expand CI fallback coverage in perf toggle tests

Cursor Agent committed 8 months ago

Commit 33eee2e1 parent def10861 file · +12 −0Browse files

Unified · Split

apps/desktop/src/perfConfig.test.ts+12−0
@@ -57,6 +57,12 @@ describe("shouldRunTerminalPerfInteractions", () => { · 56 unmodified lines
5757 CI: "false",
5858 }),
5959 ).toBe(false);
60+ expect(
61+ shouldRunTerminalPerfInteractions({
62+ T3CODE_DESKTOP_PERF_RUN_TERMINAL: "0",
63+ CI: "true",
64+ }),
65+ ).toBe(false);
6066 });
6167
6268 it("falls back to CI-based default for unknown values", () => {
@@ -72,5 +78,11 @@ describe("shouldRunTerminalPerfInteractions", () => { · 9 unmodified lines
7278 CI: "false",
7379 }),
7480 ).toBe(true);
81+ expect(
82+ shouldRunTerminalPerfInteractions({
83+ T3CODE_DESKTOP_PERF_RUN_TERMINAL: "maybe",
84+ CI: "ON",
85+ }),
86+ ).toBe(false);
7587 });
7688 });