Skip to content

Commit

Permalink
add pre-push hook to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Sep 25, 2019
1 parent da7cfa5 commit c8f6521
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .huskyrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};

0 comments on commit c8f6521

Please sign in to comment.