Closed asavin closed 8 years ago
This might not be an issue with pre-git, but somehow when I run npm test as part of pre-commit hook (defined in package.json) and tests fail, commit is still allowed to pass through.
pre-git
npm test
package.json
My pre-git config part of package.json looks like this:
"config": { "pre-git": { "pre-commit": [ "npm t" ], "pre-push": [], "post-commit": [], "post-checkout": [], "post-merge": [] } }
hmm, that should not happen. Can I ask which version of pre-git you are rocking?
It's 3.9.0
3.9.0
Will investigate, thank you for opening an issue
That was quick, thanks! All work now.
This might not be an issue with
pre-git
, but somehow when I runnpm test
as part of pre-commit hook (defined inpackage.json
) and tests fail, commit is still allowed to pass through.My pre-git config part of
package.json
looks like this: