Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vitest Browser Mode CI Bug Reproduction

This repository reproduces an intermittent bug in Vitest browser mode where tests randomly fail in CI with:

Error: Vitest failed to find the current suite. This is a bug in Vitest.

Issue

vitest-dev/vitest#9635

Reproduction Steps

  1. Fork this repository
  2. Push a commit to trigger CI
  3. Observe that some test runs may fail with the error above
  4. Re-run the failed job - it will likely pass

Environment

  • Vitest: 4.0.8
  • @vitest/browser: 4.0.8
  • Playwright: latest
  • Node: 20.x
  • OS: Ubuntu (GitHub Actions)

Behavior

  • ✅ Tests pass locally
  • ❌ Tests randomly fail in CI (approximately 1 in 5 runs)
  • ✅ Re-running CI fixes the issue

Notes

The workflow runs tests 5 times in parallel to increase the likelihood of reproducing the race condition.

About

Reproduction for vitest-dev/vitest#9635 - Random 'Vitest failed to find the current suite' error in CI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages