Skip to content

Commit 9588f39

Browse files
arcaniscaptain-yossarian
authored andcommitted
Stops calling existsSync on object configs (jestjs#7607)
1 parent 1d1e882 commit 9588f39

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252

5353
### Fixes
5454

55+
- `[jest-config]` Ensure `existsSync` is only called with a string parameter ([#7607](https://github.com/facebook/jest/pull/7607))
5556
- `[expect]` `toStrictEqual` considers sparseness of arrays. ([#7591](https://github.com/facebook/jest/pull/7591))
5657
- `[jest-cli]` Fix empty coverage data for untested files ([#7388](https://github.com/facebook/jest/pull/7388))
5758
- `[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))

packages/jest-config/src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ export function readConfigs(
286286
.filter(root => {
287287
// Ignore globbed files that cannot be `require`d.
288288
if (
289+
typeof root === 'string' &&
289290
fs.existsSync(root) &&
290291
!fs.lstatSync(root).isDirectory() &&
291292
!root.endsWith('.js') &&

0 commit comments

Comments
 (0)