kibana/scripts/jest.js
2018-02-20 23:02:29 +01:00

18 lines
464 B
JavaScript
Executable file

// # Run Jest tests
//
// All args will be forwarded directly to Jest, e.g. to watch tests run:
//
// node scripts/jest --watch
//
// or to build code coverage:
//
// node scripts/jest --coverage
//
// See all cli options in https://facebook.github.io/jest/docs/cli.html
const { resolve } = require('path');
process.argv.push('--config', resolve(__dirname, '../src/dev/jest/config.js'));
require('../src/babel-register');
require('../src/dev/jest/cli');