-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Open
Labels
Description
Version
30.2.0
Steps to reproduce
Have a snapshot test that fails.
Expected behavior
It should also render readable colors in Gitlab CI.
Actual behavior
When ran on Gitlab CI, it renders unreadable colors.
Environment
GitLab CE 17.8.7(It's been like this for years, nothing new)
Additional context
After some debugging, this is because chalk detects GitLab to be "level 1" color support, so the code paths are those:
return chalkInstance.cyan.bgWhiteBright; // also known as teal return chalkInstance.magenta.bgYellowBright;
The problem is, GitLab for some reason doesn't properly render certain color combinations:
c.bgWhiteBright.<someFgColor>never renders white bgc.<someFgColor>.bgBrightWhitealways renders white-on-white
I'll get back to this once I have more bandwidth.
Reactions are currently unavailable