Skip to content

Commit

Permalink
Enable pre-push hook for npm test execution (#288)
Browse files Browse the repository at this point in the history
pre-push hook that runs `npm run test` automatically 
ensures all tests pass locally, enhancing code quality 
and preventing the accidental push of failing code.

Let's enable the pre-push hook.
  • Loading branch information
NereusWB922 authored Mar 11, 2024
1 parent f435ca1 commit 5747ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged",
"pre-push": "npm run lint"
"pre-push": "npm run lint && npm run test"
}
},
"dependencies": {
Expand Down

0 comments on commit 5747ceb

Please sign in to comment.