Skip to content

Instantly share code, notes, and snippets.

@WeeHorse
Last active April 3, 2020 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WeeHorse/27dff5d86417c0d869c95f374a76782a to your computer and use it in GitHub Desktop.
Save WeeHorse/27dff5d86417c0d869c95f374a76782a to your computer and use it in GitHub Desktop.
npm test
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