import { httpServiceMock , loggingSystemMock } from 'src/core/server/mocks' ; import type { ConfigType } from '../config' ; import { ConfigSchema } from '../config' ; import { encryptionKeyRotationServiceMock } from '../crypto/index.mock' ; export const routeDefinitionParamsMock = { create : ( config = { } ) => ( { router : httpServiceMock . createRouter ( ) , logger : loggingSystemMock . create ( ) . get ( ) , config : ConfigSchema . validate ( config ) as ConfigType , encryptionKeyRotationService : encryptionKeyRotationServiceMock . create ( ) , } ) , } ;