Skip to content

Commit 1bf956c

Browse files
committed
perf(reporters): remove needless Array.from call
1 parent 2f37cce commit 1bf956c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vitest/src/node/reporters/summary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class SummaryReporter implements Reporter {
289289

290290
const slowTasks = [
291291
testFile.hook,
292-
...Array.from(testFile.tests.values()),
292+
...testFile.tests.values(),
293293
].filter((t): t is SlowTask => t != null && t.visible)
294294

295295
for (const [index, task] of slowTasks.entries()) {

0 commit comments

Comments
 (0)