Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels
Activity