Our pre-git configuration in package.json looks like
"pre-git": {
"pre-commit": [
"npm run lint",
"npm run coverage",
"npm run coverage-check"
],
"post-commit": [
"git status"
]
}
But, the "pre-commit" hook is not waiting for "npm run coverage" to complete (which is an istanbul cover task). npm run coverage runs fine individually. Are we missing something?
Thanks