Skip to content

fix(reporters): prevent yellow dots in dot reporter when all tests pass#9720

Closed
pierreeurope wants to merge 1 commit intovitest-dev:mainfrom
pierreeurope:fix/dot-reporter-yellow-dots
Closed

fix(reporters): prevent yellow dots in dot reporter when all tests pass#9720
pierreeurope wants to merge 1 commit intovitest-dev:mainfrom
pierreeurope:fix/dot-reporter-yellow-dots

Conversation

@pierreeurope
Copy link
Copy Markdown

Fixes #9681

The dot reporter had two bugs:

  1. In onTestModuleEnd, it filtered finished tests by checking state !== 'pending'. This incorrectly included tests in 'run' state (which haven't finished yet). The fix checks against the finishedTests Set instead.

  2. In onWatcherRerun, the finishedTests Set wasn't cleared, causing issues with test tracking across watch reloads. Added this.finishedTests.clear() to fix this.

  3. In formatTests, empty groups with count=0 were still being formatted, causing empty yellow ANSI escape sequences. Added checks to skip formatting when count is 0.

The result: all dots now correctly display green when tests pass, with no spurious yellow dots remaining.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 23, 2026

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 4a44762
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/699bc40768265e00084b7592
😎 Deploy Preview https://deploy-preview-9720--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Member

@AriPerkkio AriPerkkio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was already fixed by:

If you can still reproduce the issue, please open a bug report with reproduction.

@AriPerkkio AriPerkkio closed this Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dot reporter minor visual bug in Vitest 4

2 participants