-
-
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
Log verbose mode #2671
Comments
Why does maximum truncated output not work? What is the logic here? |
Do you have a reproduction? I don't understand your problem. |
It is just stderr.. Stdout seams to always print everything. I tend to rely on the |
A lot of words but no code. Please, give me something to run |
import {test} from 'vitest'
/** <code>
vitest run --outputTruncateLength 9999 tests/stderr.test.js # ends at: ,99986,9998
vitest run --outputTruncateLength 9999999 tests/stderr.test.js # ends at: ,99986,9998
</code>*/
test('stderr', async function() {
for(let i = 0; i <= 100000; i++) {
process.stderr.write(i + ',')
}
})
// Copy and paste the for loop in the node cli, it ends in: 99999,100000,true
// process.stdout is also truncated |
Vitest doesn't truncate anything written via |
Clear and concise description of the problem
During development there are times when it is essential to see all of the console log and error messages. I tried many things and none seem to work in all cases: large outputTruncateLength, using json reporter. At one point I found it necessary to redirect the npm
debug
package fromprocess.stdout
because it usesprocess.stderr
was suppressed.I'm glad so much is being done to clean up the output, but I do see an ongoing need, from now on, to by-pass this in the early stages development.
Suggested solution
Add a verbose-log cli option that ensures messages to
process.stdout
andprocess.stderr
always pass-through.Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: