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
Generate a string that will highlight the difference between two values with green and red. (similar to how github does code diffing)
The problem we seem to be seeing is caused by this line. It looks like jest-diff just fails to handle single-line strings?
I'm not sure why they check the multiline case like they do. To me, it looks like the return value in all cases should be return diffStrings(a, b, options);
Caused by this line:
react/scripts/jest/matchers/toWarnDev.js
Line 52 in 40fa616
Calling
jestDiff
with two different strings returnsnull
.The text was updated successfully, but these errors were encountered: