From dbbc61a9c234eb32038f6825978fa99cd2d0be0d Mon Sep 17 00:00:00 2001 From: Srijan Saurav <68371686+srijan-deepsource@users.noreply.github.com> Date: Mon, 30 May 2022 16:19:26 +0530 Subject: [PATCH] Revert "chore: read `ESLINT_MOCHA_TIMEOUT` env var in Makefile.js (#15626)" This reverts commit d5eae6db56ddf013fb676123b6b76d2ff5cb4f3a. --- Makefile.js | 2 +- docs/developer-guide/unit-tests.md | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile.js b/Makefile.js index 519b9943a7c..54ef7060675 100644 --- a/Makefile.js +++ b/Makefile.js @@ -79,7 +79,7 @@ const NODE = "node ", // intentional extra space PERF_MULTIFILES_TARGETS = `"${PERF_MULTIFILES_TARGET_DIR + path.sep}{lib,tests${path.sep}lib}${path.sep}**${path.sep}*.js"`, // Settings - MOCHA_TIMEOUT = parseInt(process.env.ESLINT_MOCHA_TIMEOUT, 10) || 10000; + MOCHA_TIMEOUT = 10000; //------------------------------------------------------------------------------ // Helpers diff --git a/docs/developer-guide/unit-tests.md b/docs/developer-guide/unit-tests.md index 2968a23805a..46d77b59076 100644 --- a/docs/developer-guide/unit-tests.md +++ b/docs/developer-guide/unit-tests.md @@ -37,7 +37,3 @@ Running individual tests is useful when you're working on a specific bug and ite ## More Control on Unit Testing `npm run test:cli` is an alias of the Mocha cli in `./node_modules/.bin/mocha`. [Options](https://mochajs.org/#command-line-usage) are available to be provided to help to better control the test to run. - -The default timeout for tests in `npm test` is 10000ms. You may change the timeout by providing `ESLINT_MOCHA_TIMEOUT` environment variable, for example: - - ESLINT_MOCHA_TIMEOUT=20000 npm test