File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -408,11 +408,16 @@ class NYC {
408408
409409 async getCoverageMapFromAllCoverageFiles ( baseDirectory ) {
410410 const map = libCoverage . createCoverageMap ( { } )
411+ const files = await this . coverageFiles ( baseDirectory )
411412
412- const data = await this . coverageData ( baseDirectory )
413- data . forEach ( report => {
414- map . merge ( report )
415- } )
413+ await pMap (
414+ files ,
415+ async f => {
416+ const report = await this . coverageFileLoad ( f , baseDirectory )
417+ map . merge ( report )
418+ } ,
419+ { concurrency : os . cpus ( ) . length }
420+ )
416421
417422 map . data = await this . sourceMaps . remapCoverage ( map . data )
418423
@@ -503,6 +508,7 @@ class NYC {
503508 }
504509 }
505510
511+ // TODO: Remove from nyc v16
506512 async coverageData ( baseDirectory ) {
507513 const files = await this . coverageFiles ( baseDirectory )
508514 return pMap (
You can’t perform that action at this time.
0 commit comments