import { createJobServiceProviderMock } from './shared_services/providers/__mocks__/jobs_service' ; import { createAnomalyDetectorsProviderMock } from './shared_services/providers/__mocks__/anomaly_detectors' ; import { createMockMlSystemProvider } from './shared_services/providers/__mocks__/system' ; import { createModulesProviderMock } from './shared_services/providers/__mocks__/modules' ; import { createResultsServiceProviderMock } from './shared_services/providers/__mocks__/results_service' ; import { createAlertingServiceProviderMock } from './shared_services/providers/__mocks__/alerting_service' ; import { MlPluginSetup } from './plugin' ; const createSetupContract = ( ) => ( { jobServiceProvider : createJobServiceProviderMock ( ) , anomalyDetectorsProvider : createAnomalyDetectorsProviderMock ( ) , mlSystemProvider : createMockMlSystemProvider ( ) , modulesProvider : createModulesProviderMock ( ) , resultsServiceProvider : createResultsServiceProviderMock ( ) , alertingServiceProvider : createAlertingServiceProviderMock ( ) , } as unknown as jest . Mocked < MlPluginSetup > ) ; const createStartContract = ( ) => jest . fn ( ) ; export const mlPluginServerMock = { createSetupContract , createStartContract , } ;