import { PluginName } from 'opensearch-dashboards/server' ; import { Plugin } from './plugin' ; export type MockedPluginInitializer = jest . Mock < Plugin < unknown , Record < string , unknown > > , any > ; export const mockPluginInitializerProvider = jest . fn ( ) . mockImplementation ( ( ) => ( ) => { throw new Error ( 'No provider specified' ) ; } ) ; jest . mock ( './plugin_reader' , ( ) => ( { read : mockPluginInitializerProvider , } ) ) ;