Skip to content

fix: snapshots ansi serialization #17

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

Closed
wants to merge 1 commit into from

Conversation

gnapse
Copy link
Member

@gnapse gnapse commented Jun 7, 2018

What:

Change snapshots serializer to strip away all ansi codes.

Why:

Because the terminal output stored I these snapshots is not the same in terminals where colors are not supported, such as in Travis-CI.

How:

Using this jest custom snapshot serializer: https://github.com/joaogranado/jest-serializer-ansi

Checklist:

  • Tests
  • Ready to be merged

@gnapse gnapse added the bug Something isn't working label Jun 7, 2018
@gnapse gnapse self-assigned this Jun 7, 2018
@gnapse gnapse mentioned this pull request Jun 7, 2018
2 tasks
Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coolio 👍

@gnapse gnapse closed this Aug 2, 2018
@nickserv nickserv deleted the pr/fix-snapshot-serialization branch November 11, 2020 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants