bahmutov / snap-shot

Jest-like snapshot feature for the rest of us, works magically by finding the right caller function
168 stars 3 forks source link

Better string diff #29

Closed bahmutov closed 7 years ago

bahmutov commented 7 years ago

When showing diff of multi-line strings show them with lines Instead of foo\n 1 => foo\n 2 show separate lines

foo
 1
=>
foo
  2

or better show context just around the changed lines. This is mainly a change in visual-diff module