-
Notifications
You must be signed in to change notification settings - Fork 38
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
More jest integration #10
Comments
Hey! Thanks for posting. And I'd love to review the PR :) |
As a side note, I forgot about custom matcher and serializer but this seems like a fine way to go. |
@thymikee should I close this and wait for jestjs/jest#4183 or proceed to second step? |
I'd go with snapshot serializer now, and switch to jestjs/jest#4183 when it's merged and new Jest is released. You can mimic the output I guess. |
Fixed with #12 |
First of all I would like to thank you for your work!
It allowed me to decreased snapshot file size from 10k lines to 1.3k!
Add custom matcher
e.g. https://github.com/americanexpress/jest-image-snapshot#usage
See https://facebook.github.io/jest/docs/expect.html#expectextendmatchers
Usage:
Add snapshot serializer based on input type
e.g. https://github.com/prettier/prettier/blob/master/tests_config/raw-serializer.js
Current output for object diffs is too noisy, so I had do implement custom serializer in my project, and now output changed from:
To:
I would love to add PR with this changes.
The text was updated successfully, but these errors were encountered: