-
-
Notifications
You must be signed in to change notification settings - Fork 143
Fix #355 - Diff showing on unchanged snapshot lines #356
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
Conversation
Helps the library comply with Jest's serializer's indent configuration, which in turn fixes styled-components#355
@fritz-c unfortunately it doesn't seem like this is working with latest code. I'm interested in landing the change though if you can get it working again |
@probablyup Unfortunately, while the branch with the fix in |
I'm fine with that. Or if the code is small enough and the license allows we can just inline it. |
Ha, I just made this same journey and had prepared basically the exact same fix. Thanks for all the work so far here! I put in a good word at If we don't see movement on either of those soon, I think it's worth doing one of the other solutions above, or using something like patch-package to apply the change, which is just two lines of non-test changes. For inlining: the lib itself is MIT licensed, so should be good there, and it's 1200 lines and 36K (24K if I count contents and not filesize, many files are the min of 4K on my system). The And heck, you could even monkeypatch if you want to get messy about it. It ain't pretty, but this fixed it for me - the class being patched is instantiated when
|
Do you think this will fix the issue? #416 |
Indeed it should! I somehow missed that the fork already had a release available, since it is I think that is the best option here. I'll double-check on Monday when I have my code at hand, but the fix does appear to be in 4.0, so that should fix the issue. Thanks for maintaining your fork, @holblin! |
@fritz-c could you rebase and get this mergeable? Thanks! |
This PR is designed to fix #355
I am keeping this as a draft PR until the merging and release of reworkcss/css#151 , which is required for the fix to work.