[x-pack/jest/integration] Jest runs setup hook when tests are skipped...

This commit is contained in:
spalger 2019-03-11 22:02:38 -07:00
parent 08d90d037f
commit 33dc8e6cfd
3 changed files with 13 additions and 7 deletions

View file

@ -30,8 +30,8 @@ node scripts/jest --ci --no-cache --verbose
echo "" echo ""
echo "" echo ""
echo " -> Running jest integration tests" # echo " -> Running jest integration tests"
cd "$XPACK_DIR" # cd "$XPACK_DIR"
node scripts/jest_integration --ci --no-cache --verbose # node scripts/jest_integration --ci --no-cache --verbose
echo "" # echo ""
echo "" # echo ""

View file

@ -16,6 +16,13 @@
// //
// See all cli options in https://facebook.github.io/jest/docs/cli.html // 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; const resolve = require('path').resolve;
process.argv.push('--config', resolve(__dirname, '../test_utils/jest/config.integration.js')); process.argv.push('--config', resolve(__dirname, '../test_utils/jest/config.integration.js'));
process.argv.push('--runInBand'); process.argv.push('--runInBand');

View file

@ -21,8 +21,7 @@ describe('example integration test with kbn server', async () => {
await servers.stop(); await servers.stop();
}); });
// FLAKY: https://github.com/elastic/kibana/issues/32795#issuecomment-471585274 it('should have started new platform server correctly', () => {
it.skip('should have started new platform server correctly', () => {
expect(servers.kbnServer).toBeDefined(); expect(servers.kbnServer).toBeDefined();
expect(servers.kbnServer.server).toBeDefined(); expect(servers.kbnServer.server).toBeDefined();
expect(servers.kbnServer.server.plugins).toBeDefined(); expect(servers.kbnServer.server.plugins).toBeDefined();