import { CollectorSet } from '../../plugins/usage_collection/server/collector' ; import { loggerMock } from '../../core/server/logging/logger.mock' ; const { makeUsageCollector } = new CollectorSet ( { logger : loggerMock . create ( ) , maximumWaitTimeForAllCollectorsInS : 0 , } ) ; interface Usage { locale : string ; } export const myCollector = makeUsageCollector < Usage > ( { type : 'unmapped_collector' , isReady : ( ) => true , fetch ( ) { return { locale : 'en' , } ; } , } ) ;