import { mockOpenSearchDashboardsMigrator } from '../../migrations/opensearch_dashboards/opensearch_dashboards_migrator.mock' ; export const migratorInstanceMock = mockOpenSearchDashboardsMigrator . create ( ) ; export const OpenSearchDashboardsMigratorMock = jest . fn ( ) . mockImplementation ( ( ) => migratorInstanceMock ) ; jest . doMock ( '../../migrations/opensearch_dashboards/opensearch_dashboards_migrator' , ( ) => ( { OpenSearchDashboardsMigrator : OpenSearchDashboardsMigratorMock , } ) ) ;