-
-
Notifications
You must be signed in to change notification settings - Fork 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
Nyan Reporter ignores useColors #1461
Comments
I think it can easily be solved by modifying both |
Nasty thing, |
What I mentioned is related to #1452. |
See PR #1469. |
thank you for the work on this one @dasilvacontin |
You're welcome, @shellscape! |
fixes #1461: nyan-reporter now respects Base.useColors, fixed bug in Base.color
Just what the title says. Nyan reporter is (understandably) doing a lot with colors. Unfortunately it ignores the useColors configuration altogether and outputs directly to process.stdout. From looking at the code, I understand it may be complex to honor that setting. The rest of the output from mocha honors that setting, it's just the reporter that doesn't.
Running a stripcolors function on the output before
process.stdout.write
in thewrite
method might be an acceptable solution for a configuration that's probably not used very often.The text was updated successfully, but these errors were encountered: