diff --git a/x-pack/scripts/jest_integration.js b/x-pack/scripts/jest_integration.js index dd0af087b3315..8311a9d283cbd 100644 --- a/x-pack/scripts/jest_integration.js +++ b/x-pack/scripts/jest_integration.js @@ -16,13 +16,6 @@ // // See all cli options in https://facebook.github.io/jest/docs/cli.html -throw new Error(` - jest_integration tests have been disabled because of a flaky failure in the - example integration test: https://github.com/elastic/kibana/issues/32795#issuecomment-471585274 - - when un-skipping these tests make sure to uncomment test/scripts/jenkins_xpack.sh lines 33-37 -`); - const resolve = require('path').resolve; process.argv.push('--config', resolve(__dirname, '../test_utils/jest/config.integration.js')); process.argv.push('--runInBand'); diff --git a/x-pack/test_utils/jest/integration_tests/example_integration.test.ts b/x-pack/test_utils/jest/integration_tests/example_integration.test.ts deleted file mode 100644 index fed22f7281912..0000000000000 --- a/x-pack/test_utils/jest/integration_tests/example_integration.test.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 * as kbnTestServer from '../../../../src/test_utils/kbn_server'; -import { TestKbnServerConfig } from '../../kbn_server_config'; - -describe('example integration test with kbn server', () => { - let kbn: any; - let kbnServer: any; - let kbnRootServer: any; - let esServer: any; - beforeAll(async () => { - const servers = kbnTestServer.createTestServers({ - adjustTimeout: (t: number) => jest.setTimeout(t), - settings: TestKbnServerConfig, - }); - esServer = await servers.startES(); - kbn = await servers.startKibana(); - kbnRootServer = kbn.root; - kbnServer = kbn.kbnServer; - - expect(servers).toBeDefined(); - expect(kbnServer).toBeDefined(); - }); - - afterAll(async () => { - await esServer.stop(); - await kbn.stop(); - }); - - it('should have started new platform server correctly', () => { - expect(kbnRootServer.root).toBeDefined(); - expect(kbnServer.server).toBeDefined(); - expect(kbnServer.server.plugins).toBeDefined(); - }); -});