import { coreMock } from '../../../../../core/public/mocks' ; import { dataPluginMock } from '../../../../data/public/mocks' ; import { VisualizeServices } from '../types' ; export const createVisualizeServicesMock = ( ) => { const coreStartMock = coreMock . createStart ( ) ; const dataStartMock = dataPluginMock . createStartContract ( ) ; const toastNotifications = coreStartMock . notifications . toasts ; return { ... coreStartMock , data : dataStartMock , toastNotifications , history : { replace : jest . fn ( ) , location : { pathname : '' } , } , } as unknown as jest . Mocked < VisualizeServices > ; } ;