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

Terminal UI flickering #6177

Open
6 tasks done
TomPridham opened this issue Jul 19, 2024 · 1 comment · May be fixed by #6893
Open
6 tasks done

Terminal UI flickering #6177

TomPridham opened this issue Jul 19, 2024 · 1 comment · May be fixed by #6893
Labels
help wanted Extra attention is needed p4-important Violate documented behavior or significantly improves performance (priority)

Comments

@TomPridham
Copy link

TomPridham commented Jul 19, 2024

Describe the bug

When running vitest there is a significant amount of flickering in the console that makes it really unpleasant to look at
This is a video of my terminal output with vitest

Screen.Recording.2024-07-19.at.1.40.46.PM.mov

My desire would be some sort of low motion option or something that makes the output more static.

Reproduction

This seems to be caused because vitest is rewriting the console output to do the animations on the running tests and when there are tests that are logging a lot or errors being printed to stdout it causes the unpleasant visual flickering. This repo reproduces it with just two tests with some timeouts. Our codebase at work has a couple hundred tests that print console errors quite a lot, so there is significantly more flickering
https://github.com/TomPridham/vitest-ui-flickering

System Info

System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Max
    Memory: 11.59 GB / 64.00 GB
    Shell: 3.2.57 - /bin/sh
  Binaries:
    Node: 20.15.1 - /usr/local/bin/node
    Yarn: 1.22.18 - /opt/homebrew/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 9.5.0 - /usr/local/bin/pnpm
    bun: 1.1.21 - /usr/local/bin/bun
  Browsers:
    Chrome: 126.0.6478.183
    Safari: 17.5
  npmPackages:
    @vitest/ui: ^1.6.0 => 1.6.0
    vitest: ^1.6.0 => 1.6.0

Used Package Manager

npm

Validations

@AriPerkkio AriPerkkio added help wanted Extra attention is needed p4-important Violate documented behavior or significantly improves performance (priority) and removed pending triage labels Jul 20, 2024
@AriPerkkio
Copy link
Member

Maybe this could help here? #3732 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed p4-important Violate documented behavior or significantly improves performance (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants