File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,6 @@ function createSuiteCollector(
294294 suiteOptions ?: TestOptions ,
295295) {
296296 const tasks : ( Test | Suite | SuiteCollector ) [ ] = [ ]
297- const factoryQueue : ( Test | Suite | SuiteCollector ) [ ] = [ ]
298297
299298 let suite : Suite
300299
@@ -442,7 +441,6 @@ function createSuiteCollector(
442441
443442 function clear ( ) {
444443 tasks . length = 0
445- factoryQueue . length = 0
446444 initSuite ( false )
447445 }
448446
@@ -451,14 +449,13 @@ function createSuiteCollector(
451449 throw new TypeError ( 'File is required to collect tasks.' )
452450 }
453451
454- factoryQueue . length = 0
455452 if ( factory ) {
456453 await runWithSuite ( collector , ( ) => factory ( test ) )
457454 }
458455
459456 const allChildren : Task [ ] = [ ]
460457
461- for ( const i of [ ... factoryQueue , ... tasks ] ) {
458+ for ( const i of tasks ) {
462459 allChildren . push ( i . type === 'collector' ? await i . collect ( file ) : i )
463460 }
464461
You can’t perform that action at this time.
0 commit comments