import { spacesClientMock } from '../mocks' ; import type { SpacesClientServiceSetup , SpacesClientServiceStart } from './spaces_client_service' ; const createSpacesClientServiceSetupMock = ( ) => ( { registerClientWrapper : jest . fn ( ) , setClientRepositoryFactory : jest . fn ( ) , } as jest . Mocked < SpacesClientServiceSetup > ) ; const createSpacesClientServiceStartMock = ( ) => ( { createSpacesClient : jest . fn ( ) . mockReturnValue ( spacesClientMock . create ( ) ) , } as jest . Mocked < SpacesClientServiceStart > ) ; export const spacesClientServiceMock = { createSetup : createSpacesClientServiceSetupMock , createStart : createSpacesClientServiceStartMock , } ;