import { PublicMethodsOf } from '@kbn/utility-types' ; import type { NewsfeedStorage } from './storage' ; const createStorageMock = ( ) => { const mock = { getLastFetchTime : jest . fn ( ) , setLastFetchTime : jest . fn ( ) , setFetchedItems : jest . fn ( ) , markItemsAsRead : jest . fn ( ) , isAnyUnread : jest . fn ( ) , isAnyUnread$ : jest . fn ( ) , } ; return mock as jest . Mocked < NewsfeedStorage > ; } ; export const storageMock = { create : createStorageMock , } ;