The per-platform case reads the third spawn argument to assert the console-host option is absent on POSIX; an untyped vi.fn() declares no parameters, so the indexed call argument fails typecheck.
The per-platform case reads the third spawn argument to assert the console-host option is absent on POSIX; an untyped vi.fn() declares no parameters, so the indexed call argument fails typecheck.