Skip to content

Commit 4d7938a

Browse files
authored
fix(reporter): dot reporter leaves pending tests (#9684)
1 parent 16d13d9 commit 4d7938a

File tree

1 file changed

+7
-0
lines changed
  • packages/vitest/src/node/reporters

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Test } from '@vitest/runner'
22
import type { SerializedError } from '@vitest/utils'
33
import type { Writable } from 'node:stream'
44
import type { Vitest } from '../core'
5+
import type { TestSpecification } from '../test-specification'
56
import type { TestRunEndReason } from '../types/reporter'
67
import type { TestCase, TestModule } from './reported-tasks'
78
import c from 'tinyrainbow'
@@ -36,6 +37,12 @@ export class DotReporter extends BaseReporter {
3637
// Ignore default logging of base reporter
3738
printTestModule(): void {}
3839

40+
onTestRunStart(_specifications: ReadonlyArray<TestSpecification>): void {
41+
super.onTestRunStart(_specifications)
42+
43+
this.renderer?.start()
44+
}
45+
3946
onWatcherRerun(files: string[], trigger?: string): void {
4047
this.tests.clear()
4148
this.renderer?.start()

0 commit comments

Comments
 (0)