import type { PublicMethodsOf } from '@osd/utility-types' ; import { EnvironmentService , InternalEnvironmentServiceSetup } from './environment_service' ; const createSetupContractMock = ( ) => { const setupContract = { instanceUuid : 'uuid' , } ; return setupContract ; } ; type EnvironmentServiceContract = PublicMethodsOf < EnvironmentService > ; const createMock = ( ) => { const mocked = { setup : jest . fn ( ) , } ; mocked . setup . mockResolvedValue ( createSetupContractMock ( ) ) ; return mocked ; } ; export const environmentServiceMock = { create : createMock , createSetupContract : createSetupContractMock , } ;