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

Dot reporter spams terminal if all the dots don't fit in the given height #3384

Closed
6 tasks done
gtm-nayan opened this issue May 17, 2023 · 1 comment · Fixed by #3415
Closed
6 tasks done

Dot reporter spams terminal if all the dots don't fit in the given height #3384

gtm-nayan opened this issue May 17, 2023 · 1 comment · Fixed by #3415

Comments

@gtm-nayan
Copy link
Contributor

Describe the bug

If the number of tests is high enough that the dot reporter can't fit all the dots on the terminal at once, it'll keep pushing lines onto stdout instead of clearing it. This also introduces some stuttering if the terminal fails to keep up with the continuous logging.

Reproduction

https://stackblitz.com/edit/vitest-dev-vitest-1pwqpk?file=vite.config.ts,test%2Fbasic.test.ts&initialPath=__vitest__/

System Info

(Stackblitz)

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: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  npmPackages:
    @vitest/ui: latest => 0.31.0

Used Package Manager

npm

Validations

@stackblitz
Copy link

stackblitz bot commented May 17, 2023

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants