import type { RequestHandlerContext } from 'src/core/server' ; export const mockRouteContext = { licensing : { license : { check : jest . fn ( ) . mockReturnValue ( { state : 'valid' , } ) , } , } , } as unknown as RequestHandlerContext ; export const mockRouteContextWithInvalidLicense = { licensing : { license : { check : jest . fn ( ) . mockReturnValue ( { state : 'invalid' , message : 'License is invalid for spaces' , } ) , } , } , } as unknown as RequestHandlerContext ;