From c8f65219db8b87a118c4c79aff851843f4caf824 Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Wed, 25 Sep 2019 11:30:43 +0200 Subject: [PATCH] add pre-push hook to run tests --- .huskyrc.js | 5 +++++ 1 file changed, 5 insertions(+) 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, }, };