The fromMock in the test uses vi.fn's explicit generic type parameter instead of inferring from a zero-arg implementation, since the brief's literal (...args) => fromMock(...args) wrapper otherwise fails to typecheck (TS2556) against tsc -b.
The fromMock in the test uses vi.fn's explicit generic type parameter instead of inferring from a zero-arg implementation, since the brief's literal (...args) => fromMock(...args) wrapper otherwise fails to typecheck (TS2556) against tsc -b.