import { PublicMethodsOf } from '@kbn/utility-types' ; import type { NewsfeedApiDriver } from './driver' ; const createDriverMock = ( ) => { const mock = { shouldFetch : jest . fn ( ) , fetchNewsfeedItems : jest . fn ( ) , } ; return mock as jest . Mocked < NewsfeedApiDriver > ; } ; export const driverMock = { create : createDriverMock , } ;