diff --git a/src/utils/fetch-timeout.test.ts b/src/utils/fetch-timeout.test.ts index a870a05ce8f0..a5b31e67467d 100644 --- a/src/utils/fetch-timeout.test.ts +++ b/src/utils/fetch-timeout.test.ts @@ -12,7 +12,7 @@ vi.mock("../logging/subsystem.js", () => ({ import { buildTimeoutAbortSignal } from "./fetch-timeout.js"; function requireWarnCall(callIndex: number): [string, Record] { - const call = warn.mock.calls.at(callIndex); + const call = warn.mock.calls[callIndex]; if (!call) { throw new Error(`missing warning call ${callIndex}`); }