Skip to content

Instantly share code, notes, and snippets.

@mashbourne
Created April 12, 2016 15:32
Show Gist options
  • Save mashbourne/d311d9907c5f0d1490159b4fb815f2a3 to your computer and use it in GitHub Desktop.
Save mashbourne/d311d9907c5f0d1490159b4fb815f2a3 to your computer and use it in GitHub Desktop.
Run npm test before git commit
mkdir .git/hooks; touch .git/hooks/pre-commit; chmod +x .git/hooks/pre-commit; echo "PATH=$PATH:/usr/local/bin:/usr/local/sbin; npm test" > .git/hooks/pre-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment