import { AlertingPublicPlugin } from './plugin' ; export type Setup = jest . Mocked < ReturnType < AlertingPublicPlugin [ 'setup' ] > > ; export type Start = jest . Mocked < ReturnType < AlertingPublicPlugin [ 'start' ] > > ; const createSetupContract = ( ) : Setup => ( { registerNavigation : jest . fn ( ) , registerDefaultNavigation : jest . fn ( ) , } ) ; const createStartContract = ( ) : Start => ( { getNavigation : jest . fn ( ) , } ) ; export const alertingPluginMock = { createSetupContract , createStartContract , } ;