Here's how this works:
- Include a
git-hooks/
directory in your project, with these two files (plus other hooks if you want, written in a similar style). - Ensure the files under the
git-hooks/
directory are executable:chmod 755 git-hooks/*
- Add
test
script to yourpackage.json
, e.g.
"scripts": {
"test": "mocha"
}