import { collectorMock } from './collectors/mocks' ; export const mockOpsCollector = collectorMock . create ( ) ; jest . doMock ( './ops_metrics_collector' , ( ) => ( { OpsMetricsCollector : jest . fn ( ) . mockImplementation ( ( ) => mockOpsCollector ) , } ) ) ;