Shape of vi.fn / jest.fn: creates a MockFn, optionally seeded with an implementation. Argument and return types are inferred from the given implementation when one is provided.
vi.fn
jest.fn
implementation
Optional
Shape of
vi.fn/jest.fn: creates a MockFn, optionally seeded with an implementation. Argument and return types are inferred from the givenimplementationwhen one is provided.