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"); }