mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
33 lines
1.1 KiB
TypeScript
33 lines
1.1 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;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import * as pluginHelpers from '@kbn/plugin-helpers';
|
|
import gulp from 'gulp';
|
|
|
|
// @ts-ignore untyped, converted in a different location in master
|
|
import { createAutoJUnitReporter } from '../../src/dev/mocha';
|
|
import { getEnabledPlugins } from './helpers/flags';
|
|
|
|
export const testServerTask = async () => {
|
|
throw new Error('server mocha tests are now included in the `node scripts/mocha` script');
|
|
};
|
|
|
|
export const testKarmaTask = async () => {
|
|
const plugins = await getEnabledPlugins();
|
|
await pluginHelpers.run('testKarma', {
|
|
plugins: plugins.join(','),
|
|
});
|
|
};
|
|
|
|
export const testKarmaDebugTask = async () => {
|
|
const plugins = await getEnabledPlugins();
|
|
await pluginHelpers.run('testKarma', {
|
|
dev: true,
|
|
plugins: plugins.join(','),
|
|
});
|
|
};
|
|
|
|
export const testTask = gulp.series(testKarmaTask, testServerTask);
|