File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/client/testing/common Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ export class TestsHelper implements ITestsHelper {
143
143
folders . sort ( ) ;
144
144
const resource = Uri . file ( workspaceFolder ) ;
145
145
folders . forEach ( ( dir ) => {
146
- dir . split ( path . sep ) . reduce ( ( parentPath , currentName , _index , _values ) => {
146
+ let parentPath = '' ; // Accumulator
147
+ dir . split ( path . sep ) . forEach ( ( currentName ) => {
147
148
let newPath = currentName ;
148
149
let parentFolder : TestFolder | undefined ;
149
150
if ( parentPath . length > 0 ) {
@@ -175,8 +176,8 @@ export class TestsHelper implements ITestsHelper {
175
176
} ) ;
176
177
tests . testFolders . push ( testFolder ) ;
177
178
}
178
- return newPath ;
179
- } , '' ) ;
179
+ parentPath = newPath ;
180
+ } ) ;
180
181
} ) ;
181
182
}
182
183
public parseTestName ( name : string , rootDirectory : string , tests : Tests ) : TestsToRun | undefined {
You can’t perform that action at this time.
0 commit comments