You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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__
orRED
orKLEUR.RED
.This would generally be much richer to read in snapshots.
The text was updated successfully, but these errors were encountered: