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
57 CI: "false",57 CI: "false",
58 }),58 }),
59 ).toBe(false);59 ).toBe(false);
60 expect(
61 shouldRunTerminalPerfInteractions({
62 T3CODE_DESKTOP_PERF_RUN_TERMINAL: "0",
63 CI: "true",
64 }),
65 ).toBe(false);
60 });66 });
61 67
62 it("falls back to CI-based default for unknown values", () => {68 it("falls back to CI-based default for unknown values", () => {
@@ -72,5 +78,11 @@ describe("shouldRunTerminalPerfInteractions", () => { · 9 unmodified lines
72 CI: "false",78 CI: "false",
73 }),79 }),
74 ).toBe(true);80 ).toBe(true);
81 expect(
82 shouldRunTerminalPerfInteractions({
83 T3CODE_DESKTOP_PERF_RUN_TERMINAL: "maybe",
84 CI: "ON",
85 }),
86 ).toBe(false);
75 });87 });
76});88});