Expand CI fallback coverage in perf toggle tests

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge authored and Julius Marminge committed 2026-02-17 19:49:55 -08:00
1 parent def1086143
commit 33eee2e30b
1 file changed
+12
+12
View File
@@ -57,6 +57,12 @@ describe("shouldRunTerminalPerfInteractions", () => {
CI: "false",
}),
).toBe(false);
expect(
shouldRunTerminalPerfInteractions({
T3CODE_DESKTOP_PERF_RUN_TERMINAL: "0",
CI: "true",
}),
).toBe(false);
});
it("falls back to CI-based default for unknown values", () => {
@@ -72,5 +78,11 @@ describe("shouldRunTerminalPerfInteractions", () => {
CI: "false",
}),
).toBe(true);
expect(
shouldRunTerminalPerfInteractions({
T3CODE_DESKTOP_PERF_RUN_TERMINAL: "maybe",
CI: "ON",
}),
).toBe(false);
});
});