How can i run tests before commit using lint-staged and react-scripts?
Created by: romankurakin
Curently have
"devDependencies": {
"husky": "^0.13.3",
"lint-staged": "^3.4.2",
"prettier": "^1.3.1",
"react-scripts": "1.0.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"precommit": "lint-staged"
},
"lint-staged": {
"src/**/*.js": [
"prettier",
"git add"
]
}
}