Skip to content

Add npm run test to husky hook "pre-commit"/"pre-push"? #467

@mStirner

Description

@mStirner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions