import path from 'path' ; import { KIBANA_ROOT } from '@kbn/test' ; import { FtrConfigProviderContext } from '@kbn/test' ; export default async function ( { readConfigFile } ) { const commonConfig = await readConfigFile ( require . resolve ( './config' ) ) ; return { ... commonConfig . getAll ( ) , testFiles : [ require . resolve ( './public' ) ] , kbnTestServer : { ... commonConfig . get ( 'kbnTestServer' ) , serverArgs : [ ... commonConfig . get ( 'kbnTestServer.serverArgs' ) , '--env.name=development' , `--plugin-path=${ path . resolve ( KIBANA_ROOT , 'test/plugin_functional/plugins/core_provider_plugin' ) }` , `--plugin-path=${ path . resolve ( __dirname , 'plugins/test_feature_usage' ) }` , ] , } , } ; }