polarity-integration-utils
    Preparing search index...

    Type Alias MockFnFactory

    MockFnFactory: () => (...args: any[]) => any

    Factory function that creates mock functions. Pass vi.fn (Vitest) or jest.fn (Jest) to get spy capabilities. When omitted, plain no-op functions are used.

    Type Declaration

      • (): (...args: any[]) => any
      • Returns (...args: any[]) => any

    // Vitest — enables toHaveBeenCalledWith() assertions
    const ctx = createMockIntegrationContext(vi.fn);

    // Jest
    const ctx = createMockIntegrationContext(jest.fn);

    // No framework — plain no-ops
    const ctx = createMockIntegrationContext();