mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Migrate x-pack-kibana source to kibana
This commit is contained in:
parent
d9d9fb22fb
commit
fe4609647d
3245 changed files with 276973 additions and 2388 deletions
27
x-pack/dev-tools/jest/index.js
Normal file
27
x-pack/dev-tools/jest/index.js
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue