From 4d7938a567d4afb16ed793fe1ac34b7b9880f06e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Wed, 18 Feb 2026 08:08:18 +0200 Subject: [PATCH] fix(reporter): `dot` reporter leaves pending tests (#9684) --- packages/vitest/src/node/reporters/dot.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/vitest/src/node/reporters/dot.ts b/packages/vitest/src/node/reporters/dot.ts index 29ce0e767cac..6a819e333320 100644 --- a/packages/vitest/src/node/reporters/dot.ts +++ b/packages/vitest/src/node/reporters/dot.ts @@ -2,6 +2,7 @@ import type { Test } from '@vitest/runner' import type { SerializedError } from '@vitest/utils' import type { Writable } from 'node:stream' import type { Vitest } from '../core' +import type { TestSpecification } from '../test-specification' import type { TestRunEndReason } from '../types/reporter' import type { TestCase, TestModule } from './reported-tasks' import c from 'tinyrainbow' @@ -36,6 +37,12 @@ export class DotReporter extends BaseReporter { // Ignore default logging of base reporter printTestModule(): void {} + onTestRunStart(_specifications: ReadonlyArray): void { + super.onTestRunStart(_specifications) + + this.renderer?.start() + } + onWatcherRerun(files: string[], trigger?: string): void { this.tests.clear() this.renderer?.start()