Webdev
Run Unit Test Before Every Commit with pre-commit Hook
· ☕ 3 min read
Why wait for CI/CD services to run your test? And in case you've already submitted a pull request, you'll have to push another commit to fix the cause of failed test held by CI provider. You can prevent that by running unit tests locally before every commit.
https://d2kbulfv42d43j.cloudfront.net/2019/git_hooks.png