From b25f6573946b49c3e00dfe53cedfc62b5917da1c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 06:15:29 +0100 Subject: [PATCH] test: dedupe fetch timeout mock read --- src/utils/fetch-timeout.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`); }