| [ Web Proxy ] |
| Viewing: https://github-redirect.dependabot.com/webpack/webpack-dev-server/issues/1555 | [Back] [Original] |
options.color) - #1555There was a problem hiding this comment.
Looks good, due no tests please add comment in code why we use this with link on issue/PR
options.color)
Oct 30, 2018
There was a problem hiding this comment.
@jayjun Thx
Codecov Report
@@ Coverage Diff @@
## master #1555 +/- ##
=======================================
Coverage 74.02% 74.02%
=======================================
Files 10 10
Lines 670 670
=======================================
Hits 496 496
Misses 174 174
Continue to review full report at Codecov.
|
| Web Proxy Viewer | New URL | Original Page |
For Bugs and Features; did you add new tests?
No, tests would require not setting the option (allow default) and running in different environments (TTY vs. non-TTY). Moreover, supports-color has special behaviour for CIs.
Motivation / Use-Case
Since supports-color 5.0.0 (chalk/supports-color#64),
returns an object instead of the test result. Because an object is truthy, colours are enabled by default irrespective of TTY or
FORCE_COLORsettings.is the correct way to use supports-color now.
Breaking Changes
None.
Additional Info