From f926f7a55fecca9ad5ce7ff5cef78afabe9d56a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Fri, 11 Jan 2019 11:14:55 +0000 Subject: [PATCH 1/2] Stops calling existsSync on object configs --- packages/jest-config/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/jest-config/src/index.js b/packages/jest-config/src/index.js index 7502ea6ffb51..16affb204add 100644 --- a/packages/jest-config/src/index.js +++ b/packages/jest-config/src/index.js @@ -286,6 +286,7 @@ export function readConfigs( .filter(root => { // Ignore globbed files that cannot be `require`d. if ( + typeof root === 'string' && fs.existsSync(root) && !fs.lstatSync(root).isDirectory() && !root.endsWith('.js') && From 7f2def176d9702f1e0fc8e588b8feb24662f2b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Fri, 11 Jan 2019 11:23:15 +0000 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06ae8b1d68ba..1c43f045ca10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ ### Fixes +- `[jest-config]` Ensure `existsSync` is only called with a string parameter ([#7607](https://github.com/facebook/jest/pull/7607)) - `[expect]` `toStrictEqual` considers sparseness of arrays. ([#7591](https://github.com/facebook/jest/pull/7591)) - `[jest-cli]` Fix empty coverage data for untested files ([#7388](https://github.com/facebook/jest/pull/7388)) - `[jest-cli]` [**BREAKING**] Do not use `text-summary` coverage reporter by default if other reporters are configured ([#7058](https://github.com/facebook/jest/pull/7058))