jest-changed-files
Advanced tools
Comparing version 29.6.3 to 29.7.0
@@ -47,9 +47,9 @@ 'use strict'; | ||
}; | ||
const gitPromises = Array.from(repos.git).map(repo => | ||
const gitPromises = Array.from(repos.git, repo => | ||
_git.default.findChangedFiles(repo, changedFilesOptions) | ||
); | ||
const hgPromises = Array.from(repos.hg).map(repo => | ||
const hgPromises = Array.from(repos.hg, repo => | ||
_hg.default.findChangedFiles(repo, changedFilesOptions) | ||
); | ||
const slPromises = Array.from(repos.sl).map(repo => | ||
const slPromises = Array.from(repos.sl, repo => | ||
_sl.default.findChangedFiles(repo, changedFilesOptions) | ||
@@ -72,9 +72,7 @@ ); | ||
const findRepos = async roots => { | ||
const gitRepos = await Promise.all( | ||
roots.reduce((promises, root) => promises.concat(findGitRoot(root)), []) | ||
); | ||
const hgRepos = await Promise.all( | ||
roots.reduce((promises, root) => promises.concat(findHgRoot(root)), []) | ||
); | ||
const slRepos = await Promise.all(roots.map(findSlRoot)); | ||
const [gitRepos, hgRepos, slRepos] = await Promise.all([ | ||
Promise.all(roots.map(findGitRoot)), | ||
Promise.all(roots.map(findHgRoot)), | ||
Promise.all(roots.map(findSlRoot)) | ||
]); | ||
return { | ||
@@ -81,0 +79,0 @@ git: new Set(gitRepos.filter(_jestUtil().isNonNullable)), |
{ | ||
"name": "jest-changed-files", | ||
"version": "29.6.3", | ||
"version": "29.7.0", | ||
"repository": { | ||
@@ -21,3 +21,3 @@ "type": "git", | ||
"execa": "^5.0.0", | ||
"jest-util": "^29.6.3", | ||
"jest-util": "^29.7.0", | ||
"p-limit": "^3.1.0" | ||
@@ -31,3 +31,3 @@ }, | ||
}, | ||
"gitHead": "fb7d95c8af6e0d65a8b65348433d8a0ea0725b5b" | ||
"gitHead": "4e56991693da7cd4c3730dc3579a1dd1403ee630" | ||
} |
18244
537
Updatedjest-util@^29.7.0