Skip to content

test mode #47

Open
Open
@jasonkuhrt

Description

@jasonkuhrt

When testing sometimes there is need to snapshot messages that might have colour in them. Colour is a concern for DX and has a valid reason to be captured in the snapshots. E.g. avoid colour regressions after refactoring.

It seems that colours codes differ across Node 12/14. graphql-nexus/nexus-prisma#3 (comment).

Anyways, it would be nice to have a test mode where instead of escape codes a nice human-readable string were emitted, like __RED__ or RED or KLEUR.RED.

This would generally be much richer to read in snapshots.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions