We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I run Nightwatch.js in GitLab CI, the colored output disappears. But it works when I run the same tests locally.
3.12.1
22.0
GitLab CI
Linux
Found a working workaround by setting the FORCE_COLOR=1 environment variable. But it's better to make this work by default.
FORCE_COLOR=1
The text was updated successfully, but these errors were encountered:
I can confirm that the fix works.
The only change was to add that variable to our CI job: https://git.drupalcode.org/project/gitlab_templates/-/merge_requests/342/diffs
variable
Sorry, something went wrong.
We use the chalk package for providing colours, which internally detects whether a terminal supports colours or not.
So, it seems that the tool used by chalk to detect colour support (supports-color) does not have support for GitLab CI.
Edit: It actually checks for CI and GITLAB_CI in env variables to decide whether to enable colors or not: https://github.com/chrispat/supports-color/blob/416db16110d450eb5b5d559840468a67821594a1/index.js#L84
CI
GITLAB_CI
The above projects do have both CI and GITLAB_CI env variables and they are set to true. https://git.drupalcode.org/project/gitlab_templates_downstream/-/jobs/4846185#L52 and https://git.drupalcode.org/project/gitlab_templates_downstream/-/jobs/4846185#L249
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Description of the bug/issue
When I run Nightwatch.js in GitLab CI, the colored output disappears. But it works when I run the same tests locally.
Steps to reproduce
Nightwatch.js Version
3.12.1
Node Version
22.0
Browser
GitLab CI
Operating System
Linux
Additional Information
Found a working workaround by setting the
FORCE_COLOR=1
environment variable. But it's better to make this work by default.The text was updated successfully, but these errors were encountered: