diff --git a/.huskyrc.js b/.huskyrc.js index 0e01ab70..92472e1e 100644 --- a/.huskyrc.js +++ b/.huskyrc.js @@ -6,8 +6,13 @@ const preCommit = createCommand([ 'npm run lint', ]); +const prePush = createCommand([ + 'npm run test', +]); + module.exports = { hooks: { 'pre-commit': preCommit, + 'pre-push': prePush, }, };