* remove unnecessary ts-ignore * add context propagation to x-opaque-id header tests * run tests on CI * simplify logging. the action purpose follows from the context name * extend tests with the assertion against execution_context from the Kibana logs * split JSON log records only * apply suggestions proposed by Spencer
33 lines
1.3 KiB
JavaScript
33 lines
1.3 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'),
|
|
require.resolve('../test/functional/config.legacy.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.resolve('../test/functional_execution_context/config.ts'),
|
|
];
|
|
|
|
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),
|
|
]);
|