Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrolich committed Jul 24, 2023
1 parent 3750ffd commit 7de60f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions tests/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions tests/suite-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ fi


bold "Running Tests"
./compile.sh
./watch--change-file.sh
./compile.sh && ./watch--change-file.sh

0 comments on commit 7de60f3

Please sign in to comment.