File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -187,18 +187,18 @@ export default class SearchSource {
187
187
return ;
188
188
}
189
189
190
- testModule . dependencies
191
- . filter ( p => allPathsAbsolute . includes ( p ) )
192
- . map ( filename => {
193
- filename = replaceRootDirInPath (
194
- this . _context . config . rootDir ,
195
- filename ,
196
- ) ;
197
- return path . isAbsolute ( filename )
190
+ testModule . dependencies . forEach ( p => {
191
+ if ( ! allPathsAbsolute . includes ( p ) ) {
192
+ return ;
193
+ }
194
+
195
+ const filename = replaceRootDirInPath ( this . _context . config . rootDir , p ) ;
196
+ collectCoverageFrom . add (
197
+ path . isAbsolute ( filename )
198
198
? path . relative ( this . _context . config . rootDir , filename )
199
- : filename ;
200
- } )
201
- . forEach ( filename => collectCoverageFrom . add ( filename ) ) ;
199
+ : filename ,
200
+ ) ;
201
+ } ) ;
202
202
} ) ;
203
203
204
204
return {
You can’t perform that action at this time.
0 commit comments