-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Bug] Terminal output is cut off while async test is executing #6590
Comments
This behavior seems intended as the reporter is truncating based on terminal height. vitest/packages/vitest/src/node/reporters/renderers/listRenderer.ts Lines 116 to 117 in 2a50464
I think it would be nice to always show tests if they are running, but that's probably better solved by reworking reporters to show summary in multiple sections in jest style, cf. #3732 |
I see. The present behavior makes it impossible to see the status of currently executing tests that are above the fold until all tests are completed. If you believe that #3732 would improve this, then that would be great ❤️ (especially #3732 (comment) - the flickering is quite distracting). |
Describe the bug
If there is an async test and the number of tests in a file is more than the height of the terminal window, then the reporter output is cut off.
More specifically, any tests that are above the fold of the terminal are not visible until all tests complete.
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-zaoda8?file=test.spec.ts,vite.config.ts,package.json&initialPath=__vitest__/
Screen.Recording.2024-09-28.at.20.09.30.mov
Reproducible even with
clearScreen:false
Vite option.Reproducible in Terminal, iTerm2 and VS Code terminal on macOS.
Reproducible in StackBlitz VS Code terminal.
Seems to happen regardless of terminal window size.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: