Skip to content

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

@gtm-nayan

Description

@gtm-nayan

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions