Inside git hook folder, I have pre push file inside it i am running "npm run coverage" i.e. command for unit test coverage.
git-hook > pre-push > npm run coverage
but it is not working, can somebody please help me.
pre-push
(not pre-push.sh
, not pre-push.py
, precisely pre-push
, with no file extension)..git/hooks/
. If you have set core.hooksPath=xxx
in the config, make sure it's under the directory xxx
.pre-push
also has the permission to run npm run coverage
.check .git/hooks. If it's empty try to uninstall husky and install again. my sh history
ls .git/hooks
npm uninstall husky
npm i husky -D
ls .git/hooks
it helped me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With