mirror of
https://github.com/appium/appium.git
synced 2026-02-22 19:29:49 -06:00
Since multiple packages will be using this file, it should probably just live here. We will eventually be able to remove the `--require ../../test/setup-babel.js` from the testing scripts once we've gotten off of gulp entirely (it can be referenced in `.mocharc.js` instead)
7 lines
408 B
JavaScript
7 lines
408 B
JavaScript
// This configures @babel/register to look for a babel config in parent dir(s) of
|
|
// wherever the tests are run. This is required if running tests via `mocha` in a package dir
|
|
// instead of the monorepo root. This does not affect `gulp-mocha`, since it has its own `.babelrc`.
|
|
// This file is required _in addition to_ the monorepo root's `test/setup.js`.
|
|
|
|
require('@babel/register')({rootMode: 'upward'});
|