diff --git a/scripts/run-ci-e2e-tests.js b/scripts/run-ci-e2e-tests.js index fa7fe3f6e5..9952ef1913 100644 --- a/scripts/run-ci-e2e-tests.js +++ b/scripts/run-ci-e2e-tests.js @@ -18,9 +18,8 @@ * --skip-cli-install - to skip react-native-cli global installation (for local debugging) * --retries [num] - how many times to retry possible flaky commands: yarn add and running tests, default 1 */ -/*eslint-disable no-undef */ -require('shelljs/global'); +const {cd, cp, echo, exec, exit, mv} = require('shelljs'); const spawn = require('child_process').spawn; const argv = require('yargs').argv; const path = require('path'); @@ -288,5 +287,3 @@ try { } } exit(exitCode); - -/*eslint-enable no-undef */ diff --git a/scripts/run-ci-javascript-tests.js b/scripts/run-ci-javascript-tests.js index 2e46700680..de415d5b5b 100644 --- a/scripts/run-ci-javascript-tests.js +++ b/scripts/run-ci-javascript-tests.js @@ -16,9 +16,8 @@ * --jestBinary [path] - path to jest binary, defaults to local node modules * --yarnBinary [path] - path to yarn binary, defaults to yarn */ -/*eslint-disable no-undef */ -require('shelljs/global'); +const {echo, exec, exit} = require('shelljs'); const argv = require('yargs').argv; const numberOfMaxWorkers = argv.maxWorkers || 1; @@ -72,5 +71,3 @@ try { echo('Finished.'); } exit(exitCode); - -/*eslint-enable no-undef */