mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[x-pack] remove use of resolveKibanaPath
from plugin helpers (#18979)
This commit is contained in:
parent
361160a03f
commit
0f8a00304b
8 changed files with 23 additions and 27 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
import jest from 'jest';
|
||||
import { resolve } from 'path';
|
||||
import { resolveKibanaPath } from '@kbn/plugin-helpers';
|
||||
|
||||
import { createJestConfig } from './create_jest_config';
|
||||
|
||||
|
@ -14,8 +13,8 @@ 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, '..', '..'),
|
||||
kibanaDirectory: resolve(__dirname, '../../..'),
|
||||
xPackKibanaDirectory: resolve(__dirname, '../..'),
|
||||
}));
|
||||
|
||||
const argv = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue