From a6160b99d90a2ef9899cc6bfd14a6b44da968dc3 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 05:03:53 +0100 Subject: [PATCH] test: dedupe tui launch mock read --- src/tui/tui-launch.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/tui-launch.test.ts b/src/tui/tui-launch.test.ts index 5b1f9e8c1247..484a6d1f0ee7 100644 --- a/src/tui/tui-launch.test.ts +++ b/src/tui/tui-launch.test.ts @@ -24,7 +24,7 @@ function createChildProcess(): ChildProcess { function expectSpawned(expectedArgs: string[]): SpawnOptions { expect(spawnMock).toHaveBeenCalledOnce(); - const call = spawnMock.mock.calls.at(0) as [string, string[], SpawnOptions] | undefined; + const call = spawnMock.mock.calls[0] as [string, string[], SpawnOptions] | undefined; if (!call) { throw new Error("missing spawn call"); }