* [kbn/test] move types/ftr into src * Apply eslint updates * fix import of Lifecycle type Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import path from 'path';
|
|
// @ts-expect-error https://github.com/elastic/kibana/issues/95679
|
|
import { KIBANA_ROOT } from '@kbn/test';
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
const commonConfig = await readConfigFile(require.resolve('./config'));
|
|
|
|
return {
|
|
...commonConfig.getAll(),
|
|
testFiles: [require.resolve('./public')],
|
|
kbnTestServer: {
|
|
...commonConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...commonConfig.get('kbnTestServer.serverArgs'),
|
|
// Required to load new platform plugin provider via `--plugin-path` flag.
|
|
'--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')}`,
|
|
],
|
|
},
|
|
};
|
|
}
|