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

Clear output on rerun #2070

Closed
4 tasks done
netcoding87 opened this issue Sep 21, 2022 · 2 comments · Fixed by #2228
Closed
4 tasks done

Clear output on rerun #2070

netcoding87 opened this issue Sep 21, 2022 · 2 comments · Fixed by #2228
Labels
good first issue Good for newcomers

Comments

@netcoding87
Copy link

Clear and concise description of the problem

When running vitest in watch mode, the output gets not cleared before rerunning the test. This leads to the problem, that on scrolling it is often hard to find the "border" where the latest run started :/

Suggested solution

Clean the output before rerun

Alternative

No response

Additional context

No response

Validations

@github-actions
Copy link

Hello @netcoding87. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@netcoding87
Copy link
Author

Here is an example repo: https://github.com/netcoding87/vitest-clear-output

You can easily compare the differences to jest runner and how jest is cleaning the output before rerun

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants