fix(cli): honor check navigation timeout (#2860)

* fix(cli): honor check navigation timeout

* test(cli): clarify diagnostic timeout precedence
This commit is contained in:
Miguel Ángel
2026-07-29 20:50:20 +02:00
committed by GitHub
parent 6cfb05e38b
commit fdc5932897
9 changed files with 60 additions and 7 deletions
+17
View File
@@ -118,6 +118,23 @@ describe("resolveDiagnosticNavigationTimeoutMs", () => {
resolveDiagnosticNavigationTimeoutMs({ PRODUCER_PAGE_NAVIGATION_TIMEOUT_MS: "invalid" }),
).toBe(10_000);
});
it("raises the diagnostic navigation budget to a larger caller-provided minimum", () => {
expect(resolveDiagnosticNavigationTimeoutMs({}, 30_000)).toBe(30_000);
});
it("does not let a caller-provided minimum shorten the default budget", () => {
expect(resolveDiagnosticNavigationTimeoutMs({}, 3_000)).toBe(10_000);
});
it("does not let a caller-provided minimum shorten the environment override", () => {
expect(
resolveDiagnosticNavigationTimeoutMs(
{ PRODUCER_PAGE_NAVIGATION_TIMEOUT_MS: "90000" },
30_000,
),
).toBe(90_000);
});
});
describe("parseCompositionEntryArg", () => {