Raathigesh / majestic

âš¡ Zero config GUI for Jest
MIT License
7.49k stars 173 forks source link

escape ansi color codes in string console.logs #221

Closed SaraVieira closed 3 years ago

SaraVieira commented 3 years ago

👋

I have been using this tool at work and it's been a life safer, the only issue I have is that when you try to log some HTML because of the ANSI color codes the HTML will show up like this:

Screenshot 2021-07-03 at 15 42 43

This PR does a small cleanup in the result and strips all of this and the HTML will show up clean

Screenshot 2021-07-03 at 15 42 31
Raathigesh commented 3 years ago

Hi Sara 👋,

Really glad to know that the tool is helpful. Thank you for the PR. I'll try to publish a new version within the next couple of days.

Raathigesh commented 3 years ago

Published 1.8.1 with this fix.

SaraVieira commented 3 years ago

🥳 Thank you!