import type { JestMockedFunction, MockFunction } from './type'; /** * Type safe util for jest.fn() */ export const createJestMockFunction = ( implementation?: (...args: Parameters) => ReturnType, ): JestMockedFunction => jest.fn, Parameters>(implementation);