-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Use diff-match-patch for string diffing #3428
Conversation
Thanks for your PR! |
This is a great PR, and thank you for doing it. Currently we don't really have time to work on integrating it into Jest, so I'll close it. If you'd like to pick it back up, please ask to reopen this or send a new PR :) |
I'll take another look at how tricky the whitespace issues look months later cpojer but I vaguely remember having no clue what exactly was going on there and a hard time reading the related code to get an idea of why the whitespace behaves as it does. If it still looks like hours of work let this be a reference for the next guy. |
@alextes For your info, there will be changes in A big difference (pardon pun :) between current
If you are interested to look at this again after Jest 21 is released, comment this issue with a direct mention to me, so we can divide and conquer with minimal merge conflicts. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
I did not dive that deep into the issue yet. Although swapping the
diff
lib is the suggested solution correct me if I'm wrong in assuming it is the full solution. I could see about adding a test that currently hangs jest as described in a couple of comments on the issue.It's hard to share some of the test output because the highlighting in it is essential. I'd be happy to provide some screens if you prefer this to grabbing my branch!
To be done:
Decisions made:
Thanks go to @cpojer for giving me the little encouragement for which I'd hoped!
Test plan
diff
to a halt if desired.Sidenotes
Fixes #1772.