import { ListPluginSetup } from './types' ; import { getListClientMock } from './services/lists/list_client.mock' ; import { getExceptionListClientMock } from './services/exception_lists/exception_list_client.mock' ; const createSetupMock = ( ) : jest . Mocked < ListPluginSetup > => { const mock = { getExceptionListClient : jest . fn ( ) . mockReturnValue ( getExceptionListClientMock ( ) ) , getListClient : jest . fn ( ) . mockReturnValue ( getListClientMock ( ) ) , registerExtension : jest . fn ( ) , } ; return mock ; } ; export const listMock = { createSetup : createSetupMock , getExceptionListClient : getExceptionListClientMock , getListClient : getListClientMock , } ;