Skip to content

Commit 9c87d0b

Browse files
committedJul 24, 2020
add jest as pre-commit hooks
1 parent d71ef88 commit 9c87d0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"storybook:build": "build-storybook -c storybook",
1515
"test": "jest",
1616
"test:watch": "jest --watch",
17-
"test:coverage": "jest --coverage"
17+
"test:coverage": "jest --coverage",
18+
"test:staged": "jest --findRelatedTests"
1819
},
1920
"husky": {
2021
"hooks": {
@@ -24,6 +25,7 @@
2425
"lint-staged": {
2526
"*.js": [
2627
"npm run format:fix",
28+
"npm run test:staged",
2729
"git add"
2830
]
2931
},

0 commit comments

Comments
 (0)