import { License } from '../../services' ; import { handleEsError } from '../../shared_imports' ; import { wrapEsError } from '../../lib' ; import type { RouteDependencies } from '../../types' ; const license = new License ( ) ; license . getStatus = jest . fn ( ) . mockReturnValue ( { isValid : true } ) ; export const routeDependencies = { license , config : { isSecurityEnabled : jest . fn ( ) . mockReturnValue ( true ) , isCloudEnabled : false , isSlmEnabled : true , } , lib : { wrapEsError , handleEsError , } , } ;