import { collectorMock } from './collectors/mocks' ; export const mockOsCollector = collectorMock . create ( ) ; jest . doMock ( './collectors/os' , ( ) => ( { OsMetricsCollector : jest . fn ( ) . mockImplementation ( ( ) => mockOsCollector ) , } ) ) ; export const mockProcessCollector = collectorMock . create ( ) ; jest . doMock ( './collectors/process' , ( ) => ( { ProcessMetricsCollector : jest . fn ( ) . mockImplementation ( ( ) => mockProcessCollector ) , } ) ) ; export const mockServerCollector = collectorMock . create ( ) ; jest . doMock ( './collectors/server' , ( ) => ( { ServerMetricsCollector : jest . fn ( ) . mockImplementation ( ( ) => mockServerCollector ) , } ) ) ;