Commit 99dfd2f
authored
test: validate ANSI escape codes are not in redirected composer output (#134)
* test: add ANSI escape code validation for redirected composer output
Adds a test to verify that `lando composer` output does not contain
ANSI escape codes when stdout is redirected to a file.
This test is expected to FAIL until the fix is applied (removing
`--ansi` from the composer tooling command).
Ref lando/drupal#157
* fix: remove --ansi flag from composer tooling command
Composer auto-detects TTY and enables color output when appropriate.
The --ansi flag forced ANSI escape codes even when stdout was redirected
to a file or used in command substitution, breaking scripted usage.
Ref lando/drupal#157
* docs: add CHANGELOG entry for --ansi removal
---------
Co-authored-by: Aaron Feledy <aaron@aaronfeledy.com>1 parent b274429 commit 99dfd2f
3 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
0 commit comments