Skip to content

Commit 50393c0

Browse files
authored
Merge pull request #11 from simpletut/huskyPre_push
pre-push
2 parents 5c2d1a2 + aabb063 commit 50393c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"test": "react-scripts test",
2020
"eject": "react-scripts eject"
2121
},
22+
"husky": {
23+
"hooks": {
24+
"pre-push": "CI=true npm test"
25+
}
26+
},
2227
"eslintConfig": {
2328
"extends": "react-app"
2429
},
@@ -32,6 +37,7 @@
3237
"check-prop-types": "^1.1.2",
3338
"enzyme": "^3.8.0",
3439
"enzyme-adapter-react-16": "^1.7.1",
40+
"husky": "^2.3.0",
3541
"jest": "^23.6.0",
3642
"jest-enzyme": "^7.0.1",
3743
"moxios": "^0.4.0"

0 commit comments

Comments
 (0)