mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
We're working on converting all plugins into packages, which turns almost all code in the repository into a package except for things like the `test` and `x-pack/test` directories. The problem we ran into is that the alerting api-integration test plugins are being migrated to packages but they are currently consuming a handful of helpers from the parent `../lib` directory. This doesn't work, as packages can only import other packages and the `../lib` directory isn't in a package, it's just free-floating `x-pack/test` code. To fix this I've moved the necessary components out of `common/lib` and into `packages/helpers` which is importable via `@kbn/alerting-api-integration-helpers` and updated all the uses to access this new package.
12 lines
416 B
JavaScript
12 lines
416 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
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
module.exports = {
|
|
preset: '@kbn/test/jest_node',
|
|
rootDir: '../../../../..',
|
|
roots: ['<rootDir>/x-pack/test/alerting_api_integration/packages/helpers'],
|
|
};
|