From bd8e986bb2ebb0425aa75c1f7694caed9df67c6b Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 01:57:55 +0100 Subject: [PATCH] test: dedupe doctor security mock read --- src/commands/doctor-security.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/doctor-security.test.ts b/src/commands/doctor-security.test.ts index 3d04f006726..f1704968d47 100644 --- a/src/commands/doctor-security.test.ts +++ b/src/commands/doctor-security.test.ts @@ -65,7 +65,7 @@ describe("noteSecurityWarnings gateway exposure", () => { } }); - const lastMessage = () => String(note.mock.calls.at(-1)?.[0] ?? ""); + const lastMessage = () => String(note.mock.calls[note.mock.calls.length - 1]?.[0] ?? ""); async function withExecApprovalsFile( file: Record,