pre-commit hook that validates mocha tests