From dccb38228311817a48cba7bcf46a26d12fc79043 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 06:51:28 +0100 Subject: [PATCH] test: dedupe hook security mock read --- src/plugins/hooks.security.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/hooks.security.test.ts b/src/plugins/hooks.security.test.ts index 9a8ec7f9a5e8..041c3beea219 100644 --- a/src/plugins/hooks.security.test.ts +++ b/src/plugins/hooks.security.test.ts @@ -63,7 +63,7 @@ function expectTerminalHookState< } function requireLoggerErrorMessage(logger: { error: { mock: { calls: unknown[][] } } }): string { - const call = logger.error.mock.calls.at(0); + const call = logger.error.mock.calls[0]; if (!call) { throw new Error("expected logger error call"); }