Skip to content

Vitest UI doesn't render tests initially #6065

@rothsandro

Description

@rothsandro

Describe the bug

Starting Vitest with the --ui parameter will open the Vitest UI and run all tests, but the UI doesn't show any tests. I have to reload the UI in the browser to see the tests. This only happens after updating to Vitest UI 2.x

image

Reproduction

Can be reproduced with the StackBlitz demo you provide: https://stackblitz.com/edit/vitest-dev-vitest-q9metk?file=README.md&initialPath=__vitest__/

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @vitest/ui: latest => 2.0.1 
    vite: latest => 5.3.3 
    vitest: latest => 2.0.1

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

Labels

p3-minor-bugAn edge case that only affects very specific usage (priority)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions