{
"scripts": {
"test:coverage": "jest ./client/public/app-react/src --coverage",
},
"husky": {
"hooks": {
"pre-push": "npm run test:coverage"
}
}
}
// package.json
{
"husky": {
"hooks": {
"pre-push": "lint-staged"
}
}
}
// lint-staged.config.js
module.exports = {
'./client/public/app-react/src/**/*.js': () => 'jest ./client/public/app-react/src --coverage',
}