Run tests as a pre-commit hook. This will automatically run `npm test`.