Linting is fast enough to run in before every commit.
Running the tests takes about ~8s.
Run the npm run test command before a push instead?
pre-push
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
docker run -d -p 80:80 kennethreitz/httpbin httpbin
npm run test
docker rm httpbin