const onChangeSpy = jest.fn().mockImplementation((cb: (prev: unknown[]) => void) => cb(array))