Skip to content
New issue

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

test mode #47

Open
jasonkuhrt opened this issue Feb 19, 2021 · 0 comments
Open

test mode #47

jasonkuhrt opened this issue Feb 19, 2021 · 0 comments

Comments

@jasonkuhrt
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant