-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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 runner breaks with ERR_TAP_LEXER_ERROR while trying a console.dir with colors flag set ( {colors: true} ) #46959
Labels
confirmed-bug
Issues with confirmed bugs.
test_runner
Issues and PRs related to the test runner subsystem.
Comments
MoLow
added
test_runner
Issues and PRs related to the test runner subsystem.
confirmed-bug
Issues with confirmed bugs.
labels
Mar 5, 2023
It seems this could be solved by adding the ansi escape symbol diff --git a/lib/internal/test_runner/tap_lexer.js b/lib/internal/test_runner/tap_lexer.js
index a27e6ab35e..8af5453b28 100644
--- a/lib/internal/test_runner/tap_lexer.js
+++ b/lib/internal/test_runner/tap_lexer.js
@@ -525,7 +525,7 @@ class TapLexer {
}
#isEscapeSymbol(char) {
- return char === '\\';
+ return char === '\\' || char === '\x1b';
}
#isYamlStartSymbol(char) { |
@debadree25 do you want to open a PR? |
Doing so! |
debadree25
added a commit
to debadree25/node
that referenced
this issue
Mar 12, 2023
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
confirmed-bug
Issues with confirmed bugs.
test_runner
Issues and PRs related to the test runner subsystem.
Version
v19.7.0
Platform
Linux lnv 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
test_runner
What steps will reproduce the bug?
node --test test-console_colors.js
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
should be same as when I run: node del/test-console_colours.js
What do you see instead?
Additional information
The text was updated successfully, but these errors were encountered: