-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix(reporter): allow dot
reporter to work in non interactive terminals
#7994
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
Conversation
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
dot
reporter to work in non interactive terminals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We definitely do not want to make changes to logger.ts
just for dot
reporter.
Instead, the dot
reporter should maybe print multiple test results at once instead of one-by-one, when in non-TTY.
We should not try to intercept the console logs at all here. Instead, let's not write test results one-by-one on Removing this vitest/packages/vitest/src/node/reporters/dot.ts Lines 80 to 87 in c00983c
|
Yeah, you are right. There's no easy way to make this work perfectly. When we rewrote Vitest's reporters, this part was something we spent a lot of time optimizing in. But that was just for the TTY mode where we can control the terminal completely. Let's do this how it was in the first commit. It seems to be inline with other test runners. Thanks for testing other tools too! 💯 |
93a0021
to
c46ac09
Compare
d6e1f0f
to
5cff550
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the PR @bstephen1! 🎉
Description
Updates dot reporter to support non-TTY terminals instead of silently switching to basic reporter. Closes #3932
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yaml
unless you introduce a new test example.Tests
pnpm test:ci
.Documentation
pnpm run docs
command.Changesets
feat:
,fix:
,perf:
,docs:
, orchore:
.