Adding husky test run to prepush
This commit is contained in:
parent
7be35e5b23
commit
fff86f144b
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user