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

It looks like this change may have caused the output in @vitest/ui to print ANSI escape codes. #3675

Closed
wycats opened this issue Jun 26, 2023 · 4 comments · Fixed by #3810
Closed
Labels

Comments

@wycats
Copy link

wycats commented Jun 26, 2023

I commented on #3582 but realized I should probably open a new issue:

It looks like something in #3582 may have caused the output in @vitest/ui to print ANSI escape codes.

image

I'm not sure what the root cause is, but I'm sure it started after I upgraded vitest this week.

Originally posted by @wycats in #3582 (comment)

@silverwind
Copy link
Contributor

Not sure if desirable, but you could use https://github.com/drudru/ansi_up to render ansi codes into HTML.

@wycats
Copy link
Author

wycats commented Jul 8, 2023

Isn't this a pretty serious bug? Is there something I'm doing that makes it happen to me, but not to others?

@so1ve
Copy link
Contributor

so1ve commented Jul 19, 2023

👀 I'm going to work on this issue, but I'm not sure how to test @vitest/ui :(

@sheremet-va
Copy link
Member

👀 I'm going to work on this issue, but I'm not sure how to test @vitest/ui :(

You can run test/core tests with --ui flag for example:

cd test/core
pnpm test --ui

@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants