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

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
Describe the bug
Starting Vitest with the
--uiparameter 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.xReproduction
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.1Used Package Manager
npm
Validations