From ffb2dcc2e64a0827e68b4a4d9ae299856c99d36c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 09:43:20 +0100 Subject: [PATCH] test: dedupe imessage retry mock reads --- extensions/imessage/src/monitor.watch-subscribe-retry.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/imessage/src/monitor.watch-subscribe-retry.test.ts b/extensions/imessage/src/monitor.watch-subscribe-retry.test.ts index 7ac09882838..fb8207f6021 100644 --- a/extensions/imessage/src/monitor.watch-subscribe-retry.test.ts +++ b/extensions/imessage/src/monitor.watch-subscribe-retry.test.ts @@ -109,7 +109,7 @@ describe("monitorIMessageProvider watch.subscribe startup retry", () => { { timeoutMs: 10_000 }, ); expect(runtime.log).toHaveBeenCalledTimes(1); - expect(String(runtime.log.mock.calls.at(0)?.[0])).toContain( + expect(String(runtime.log.mock.calls[0]?.[0])).toContain( "imessage: watch.subscribe startup failed (attempt 1/3): Error: imsg rpc timeout (watch.subscribe); retrying", ); expect( @@ -141,7 +141,7 @@ describe("monitorIMessageProvider watch.subscribe startup retry", () => { expect((monitorError as Error).message).toContain("imsg rpc timeout (watch.subscribe)"); expect(createIMessageRpcClientMock).toHaveBeenCalledTimes(3); expect(runtime.error).toHaveBeenCalledTimes(1); - expect(String(runtime.error.mock.calls.at(0)?.[0])).toContain( + expect(String(runtime.error.mock.calls[0]?.[0])).toContain( "imessage: monitor failed: Error: imsg rpc timeout (watch.subscribe)", ); });