import type { PublicMethodsOf } from '@osd/utility-types' ; import { FlyoutService , OverlayFlyoutStart } from './flyout_service' ; const createStartContractMock = ( ) => { const startContract = { open : jest . fn ( ) . mockReturnValue ( { close : jest . fn ( ) , onClose : Promise . resolve ( ) , } ) , } ; return startContract ; } ; const createMock = ( ) => { const mocked = { start : jest . fn ( ) , } ; mocked . start . mockReturnValue ( createStartContractMock ( ) ) ; return mocked ; } ; export const overlayFlyoutServiceMock = { create : createMock , createStartContract : createStartContractMock , } ;