git hooks pre-push is not working

Viewed 6495

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.

3 Answers

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

Related