import type { PublicMethodsOf } from '@kbn/utility-types' ; import type { KibanaConfigWriter } from './kibana_config_writer' ; export const kibanaConfigWriterMock = { create : ( ) : jest . Mocked < PublicMethodsOf < KibanaConfigWriter > > => ( { isConfigWritable : jest . fn ( ) . mockResolvedValue ( true ) , writeConfig : jest . fn ( ) . mockResolvedValue ( undefined ) , } ) , } ;