Skip to content

Disable emojis/colour when CI env var is set #560

@achingbrain

Description

@achingbrain

CI logging output can be really hard to read:

\x1B[0m\x1B[0m\n'
 \x1B[0m  ping test\x1B[0m\n'
   \x1B[36m  - should listen for ping\x1B[0m\n'

Some CI logging setups handle this well, some do not - the above is a browser test running in a docker image on GitHub CI so I think it's actually Docker which is mangling the output, at any rate it's full of garbage.

It would be better to disable all the fancy formatting when the process.env.CI env var is set. Some runners do this automatically (e.g. mocha) but others don't (playwright?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions