Run related tests on commit

This commit is contained in:
Azat Mutigullin 2021-02-16 12:21:04 +03:00
parent bec82c01db
commit 4b8c2a027b

View file

@ -30,7 +30,8 @@
"lint-staged": {
"*.{js,ts,jsx,tsx}": [
"eslint -c .eslintrc.json --fix",
"git add"
"git add",
"npm test -- --bail --findRelatedTests --watchAll=false"
]
},
"scripts": {
@ -45,7 +46,7 @@
},
"husky": {
"hooks": {
"pre-commit": "npm run tsc --noEmit && lint-staged && npm run test:CI"
"pre-commit": "npm run tsc --noEmit && lint-staged"
}
},
"eslintConfig": {