Expand CI fallback coverage in perf toggle tests

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge committed 2026-02-17 07:10:38 +00:00
1 parent 57124d21e8
commit c0f8077010
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);
});
});