Over the last few years we've increased the number of test runners. Entry points by test type have become too lage of a category for unique names, so this moves top level test scripts under yarn and replaces test types with the runner name. e.g. `yarn test:browser` -> `yarn test:karma` Closes #41133 Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
22 lines
728 B
JavaScript
22 lines
728 B
JavaScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
require('../src/setup_node_env');
|
|
|
|
const { buildTask } = require('./tasks/build');
|
|
const { devTask } = require('./tasks/dev');
|
|
const { testTask, testKarmaTask, testKarmaDebugTask } = require('./tasks/test');
|
|
const { prepareTask } = require('./tasks/prepare');
|
|
|
|
// export the tasks that are runnable from the CLI
|
|
module.exports = {
|
|
build: buildTask,
|
|
dev: devTask,
|
|
prepare: prepareTask,
|
|
test: testTask,
|
|
'test:karma': testKarmaTask,
|
|
'test:karma:debug': testKarmaDebugTask,
|
|
};
|