Skip to content

Commit 992e55f

Browse files
committed
Isolate globstar mapping
1 parent df8807f commit 992e55f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/helpers/files.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,12 @@ function coverageFilePatterns() {
163163
* @returns {Promise<string[]>}
164164
*/
165165
async function getCoverageFiles(projectRoot, coverageFilePatterns) {
166-
return glob(
167-
coverageFilePatterns.map(pattern => `**/${pattern}`),
168-
{
169-
cwd: projectRoot,
170-
ignore: globBlacklist(),
171-
},
172-
)
166+
const globstar = (/** @type {string} */ pattern) => `**/${pattern}`
167+
168+
return glob(coverageFilePatterns.map(globstar), {
169+
cwd: projectRoot,
170+
ignore: globBlacklist(),
171+
})
173172
}
174173

175174
/**

0 commit comments

Comments
 (0)