mirror of
https://github.com/elastic/kibana.git
synced 2025-04-20 16:03:20 -04:00
29 lines
989 B
JavaScript
29 lines
989 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;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
// # Run Jest integration tests
|
|
//
|
|
// All args will be forwarded directly to Jest, e.g. to watch tests run:
|
|
//
|
|
// node scripts/jest_contract --watch
|
|
//
|
|
// or to build code coverage:
|
|
//
|
|
// node scripts/jest_contract --coverage
|
|
//
|
|
// See all cli options in https://facebook.github.io/jest/docs/cli.html
|
|
|
|
const resolve = require('path').resolve;
|
|
process.argv.push('--config', resolve(__dirname, '../test_utils/jest/config.contract.js'));
|
|
process.argv.push('--runInBand');
|
|
|
|
process.env.CONTRACT_ONLINE = 'true';
|
|
process.env.SLAPSHOT_ONLINE = 'true';
|
|
process.env.SLAPSHOT_RERUN_MESSAGE =
|
|
'run "node scripts/jest_contract.js --updateSnapshot" in the x-pack directory';
|
|
|
|
require('../../src/setup_node_env');
|
|
require('../../src/dev/jest/cli');
|