Skip to content
GitHub

MockFnFactory

type alias in meocord/testing Since 4.2.0

type MockFnFactory = (impl?: (...args: any[]) => any) => RunnerMock

A test runner's mock function factory, such as vi.fn.

Called with the implementation a mock starts with, it returns the runner's mock. See useMockFn.