Skip to content

Instantly share code, notes, and snippets.

@WeeHorse
Created April 3, 2020 13:57
Show Gist options
  • Save WeeHorse/de332506e48d251da9c74a4f5389839e to your computer and use it in GitHub Desktop.
Save WeeHorse/de332506e48d251da9c74a4f5389839e to your computer and use it in GitHub Desktop.
npm run test:unit
TEST_RESULT=$?
if [ $TEST_RESULT -eq 0 ]
then echo "Tests passed. Committing..."
else echo "Testing your changes has failed! Commit will be aborted." && exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment