Migrate x-pack-kibana source to kibana

This commit is contained in:
Jenkins CI 2018-04-20 19:13:37 +00:00 committed by spalger
parent d9d9fb22fb
commit fe4609647d
3245 changed files with 276973 additions and 2388 deletions

View file

@ -0,0 +1,27 @@
/*
* 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 jest from 'jest';
import { resolve } from 'path';
import { resolveKibanaPath } from '@kbn/plugin-helpers';
import { createJestConfig } from './create_jest_config';
export function runJest() {
process.env.NODE_ENV = process.env.NODE_ENV || 'test';
const config = JSON.stringify(createJestConfig({
kibanaDirectory: resolveKibanaPath(''),
xPackKibanaDirectory: resolve(__dirname, '..', '..'),
}));
const argv = [
...process.argv.slice(2),
'--config', config,
];
return jest.run(argv);
}