Skip to content

Commit 3f56226

Browse files
committed
chore: add tests husky hook :)
1 parent 5c93432 commit 3f56226

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@
3131
"start": "react-scripts start",
3232
"build": "react-scripts build",
3333
"test": "react-scripts test",
34-
"lint": "eslint . --cache --report-unused-disable-directives"
34+
"lint": "eslint . --cache --report-unused-disable-directives",
35+
"test:coverage": "react-scripts test --coverage && open coverage/lcov-report/index.html"
3536
},
3637
"husky": {
3738
"hooks": {
3839
"pre-commit": "pretty-quick --staged --pattern \"src/**/*.*(js|jsx)\"",
39-
"pre-push": "yarn run lint"
40+
"pre-push": "yarn run lint && react-scripts test"
4041
}
4142
},
4243
"browserslist": {

0 commit comments

Comments
 (0)