Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vitest UI doesn't render tests initially #6065

Closed
6 tasks done
rothsandro opened this issue Jul 9, 2024 · 3 comments · Fixed by #6069
Closed
6 tasks done

Vitest UI doesn't render tests initially #6065

rothsandro opened this issue Jul 9, 2024 · 3 comments · Fixed by #6069
Assignees
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@rothsandro
Copy link

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

@userquin userquin self-assigned this Jul 9, 2024
@userquin userquin added p3-minor-bug An edge case that only affects very specific usage (priority) and removed pending triage labels Jul 9, 2024
@userquin
Copy link
Member

userquin commented Jul 9, 2024

The ui is faster than server logic, we need to include files if not loaded on initial ws connection: https://github.com/userquin/vitest-issue-6065 (added some logs and sourcemap for local tgz vitest ui)

@devbucket
Copy link

Maybe it's only me, but I do not understand this answer.
I am facing the same issue, as the UI is not showing any tests. Only when refreshing the browser, does it. But still, then it does not automatically update when the tests are still running.

@sheremet-va
Copy link
Member

Maybe it's only me, but I do not understand this answer.

I am facing the same issue, as the UI is not showing any tests. Only when refreshing the browser, does it. But still, then it does not automatically update when the tests are still running.

This is a bug. Expect a fix in the next version

@github-actions github-actions bot locked and limited conversation to collaborators Jul 25, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants