Adding husky test run to prepush

This commit is contained in:
Satbir 2019-12-18 18:39:08 +05:30
parent 7be35e5b23
commit fff86f144b

View File

@ -87,7 +87,7 @@
"analyze": "source-map-explorer 'build/static/js/*.js'",
"start": "REACT_APP_ENVIRONMENT=DEVELOPMENT craco start",
"build": "craco build",
"test": "craco test",
"test": "CI=true craco test",
"eject": "react-scripts eject",
"start-prod": "REACT_APP_ENVIRONMENT=PRODUCTION craco start",
"storybook": "start-storybook",
@ -138,7 +138,8 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"pre-commit": "lint-staged",
"pre-push": "yarn run test"
}
}
}