diff --git a/rewatch/tests/compile.sh b/rewatch/tests/compile.sh index 31c1f9f9f7..3e8d672c4d 100755 --- a/rewatch/tests/compile.sh +++ b/rewatch/tests/compile.sh @@ -149,7 +149,7 @@ fi # see if the snapshots have changed changed_snapshots=$(git ls-files --modified ../tests/snapshots) -if git diff --exit-code ../tests/snapshots &> /dev/null; +if git diff --exit-code --ignore-all-space ../tests/snapshots &> /dev/null; then success "Snapshots are correct" else @@ -160,7 +160,7 @@ else for file in $changed_snapshots; do bold $file # show diff of file vs contents in git - git diff $file $file + git diff --ignore-all-space $file $file printf "\n\n" done