Run related tests on commit
This commit is contained in:
parent
bec82c01db
commit
4b8c2a027b
1 changed files with 3 additions and 2 deletions
|
@ -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": {
|
||||
|
|
Loading…
Add table
Reference in a new issue