-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
test module corrupts console.log output #47955
Comments
|
It seems that if a line starts with a space character, only the first word in the line is printed. This code, for example: import test from 'node:test'
test('bug', () => {
console.log('hello world')
console.log(' hello world')
}) outputs the following:
|
I found the issue in the TapParse, can I work on this issue? |
this will be fixed by #47867 so no need to fix |
Thanks @MoLow! For the sake of the coding exercise, was the issue because of tap laxer ( By the way the fix PR you linked seems not the correct one ^ 47867 instead of 47955 (which is this issue itself) |
don't know :) |
PR-URL: nodejs#47867 Fixes: nodejs#44656 Fixes: nodejs#47955 Fixes: nodejs#47481 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Version
v20.1.0
Platform
Linux strapurp 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
test/test-bug.mjs
:Run:
node --test test/test-bug.mjs
How often does it reproduce? Is there a required condition?
100% repro rate (not flaky).
Seems to happen when
[
is logged.What is the expected behavior? Why is that the expected behavior?
console.log
in--test
mode should show output similar toconsole.log
in normal Node.js:What do you see instead?
Logged elements of the Uint8Array are missing:
Additional information
I encountered this bug with Uint8Array.
I also encountered this bug with code like the following:
The text was updated successfully, but these errors were encountered: