Skip to content

Commit dc3fd3e

Browse files
authored
refactor(runner): remove unused variable factoryQueue (#7384)
1 parent 03912b4 commit dc3fd3e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/runner/src/suite.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)