Running (npm|pnpm|yarn) -s betterer ci outputs a "pretty-printed" result, e.g.
\ | / _ _ _
'-.ooo.-' | |__ ___| |_| |_ ___ _ __ ___ _ __
---ooooo--- | '_ \/ _ \ __| __/ _ \ '__/ _ \ '__|
.-'ooo'-. | |_)| __/ |_| || __/ | | __/ |
/ | \ |_.__/\___|\__|\__\___|_| \___|_|
π Betterer: 6 tests done!
β Example test #1: "Example test #1" stayed the same. (2 issues) π
β Example test #2: "Example test #2" stayed the same. (2 issues) π
β Example test #3 - a longer label: "Example test #3 - a longer label" stayed the same. (9 issues) π
β Example test #4 - suuuuuuper long label to make a convincing point!: "Example test #4 - suuuuuuper long label to make a convincing point!" stayed the same. (7 issues) π
β #5: "#5" stayed the same. (2 issues) π
β This is #6: "This is #6" stayed the same. (3 issues) π
6 tests got checked. π€
6 tests stayed the same. π
but when the standard output is redirected to e.g. a file (i want to use it in CI for external reporting - Slack, PR comments, etc.) the output is different:
\ | / _ _ _
'-.ooo.-' | |__ ___| |_| |_ ___ _ __ ___ _ __
---ooooo--- | '_ \/ _ \ __| __/ _ \ '__/ _ \ '__|
.-'ooo'-. | |_)| __/ |_| || __/ | | __/ |
/ | \ |_.__/\___|\__|\__\___|_| \___|_|
π Betterer: 6 tests done!
β Example test #1: "Example test #1" stayed the same. (2 issues) π
β Example test #2: "Example test #2" stayed the same. (2 issues) π
β Example test #3 - a longer label: "Example test #3 - a longer label" stayed
the same. (9 issues) π
β Example test #4 - suuuuuuper long label to make a convincing point!: "Example
test #4 - suuuuuuper long label to make a convincing point!" stayed the same.
(7 issues) π
β #5: "#5" stayed the same. (2 issues) π
β This is #6: "This is #6" stayed the same. (3 issues) π
6 tests got checked. π€
6 tests stayed the same. π
the lines are now wrapped which makes the output much less readable
To Reproduce
(npm|pnpm|yarn) -s betterer ci > output.txt
cat output.txt
Expected behavior
The redirected output would match the printed output
Describe the bug
Running
(npm|pnpm|yarn) -s betterer ci
outputs a "pretty-printed" result, e.g.but when the standard output is redirected to e.g. a file (i want to use it in CI for external reporting - Slack, PR comments, etc.) the output is different:
the lines are now wrapped which makes the output much less readable
To Reproduce
Expected behavior The redirected output would match the printed output
Versions:
OS
``` ProductName: macOS ProductVersion: 13.4 BuildVersion: 22F66 ```Betterer
``` 5.4.0 ```Node
``` 20.3.0 ```