mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* move execution context tests to x-pack folder * add execution context tests for alerts and tasks * cleanup tests * remove obsolete test folder * use ToolingLog instead of console.log
30 lines
1.2 KiB
JavaScript
30 lines
1.2 KiB
JavaScript
/*
|
|
* 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 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
const alwaysImportedTests = [
|
|
require.resolve('../test/functional/config.js'),
|
|
require.resolve('../test/plugin_functional/config.ts'),
|
|
require.resolve('../test/ui_capabilities/newsfeed_err/config.ts'),
|
|
require.resolve('../test/new_visualize_flow/config.ts'),
|
|
require.resolve('../test/security_functional/config.ts'),
|
|
];
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
const onlyNotInCoverageTests = [
|
|
require.resolve('../test/api_integration/config.js'),
|
|
require.resolve('../test/interpreter_functional/config.ts'),
|
|
require.resolve('../test/examples/config.js'),
|
|
];
|
|
|
|
require('../src/setup_node_env');
|
|
require('@kbn/test').runTestsCli([
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
...alwaysImportedTests,
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
...(!!process.env.CODE_COVERAGE ? [] : onlyNotInCoverageTests),
|
|
]);
|