diff --git a/tests/compile.sh b/tests/compile.sh index d58cad6..6dd39ca 100755 --- a/tests/compile.sh +++ b/tests/compile.sh @@ -53,14 +53,15 @@ if [[ $new_files = "" ]]; then echo "✅ - No new files created" else - echo "❌ - New files created\n${new_files}" + printf "❌ - New files created\n${new_files}\n" exit 1 fi -if git diff --exit-code ../tests/snapshots; +changed_snapshots=$(git ls-files --modified ../tests/snapshots) +if git diff --exit-code ../tests/snapshots &> /dev/null; then echo "✅ - Snapshots are correct" else - echo "❌ - Snapshots are incorrect" + printf "❌ - Snapshots are incorrect:\n${changed_snapshots}\n" exit 1 fi \ No newline at end of file diff --git a/tests/suite-ci.sh b/tests/suite-ci.sh index 24e6cf0..029fd02 100755 --- a/tests/suite-ci.sh +++ b/tests/suite-ci.sh @@ -27,5 +27,5 @@ fi bold "Running Tests" -./compile.sh -./watch--change-file.sh +./compile.sh && ./watch--change-file.sh +