with https://github.com/elastic/kibana/pull/5553 we added command line flags the told mocha it was supposed to use babel. This changes the strategy here and instead uses mocha's -r option (and it's mocha.opts file to specify it). This means that using mocha directly from the command line still works, and that we have a place where we can do other setup work.
1 line
73 B
JavaScript
1 line
73 B
JavaScript
require('babel/register')(require('../src/optimize/babelOptions').node);
|