diff --git a/test/config-dir.sh b/test/config-dir.sh index a040983bb..21b7e9067 100644 --- a/test/config-dir.sh +++ b/test/config-dir.sh @@ -14,8 +14,8 @@ cd_and_install_tgz $tempDir mkdir $configDir init_git -npx --no-install husky install .config/husky -npx --no-install husky add .config/husky/pre-commit "echo \"msg from pre-commit hook\" && exit 1" +npx --no husky install .config/husky +npx --no husky add .config/husky/pre-commit "echo \"msg from pre-commit hook\" && exit 1" # Debug # cat .husky/* diff --git a/test/default.sh b/test/default.sh index 882aad6f9..eb810ab63 100644 --- a/test/default.sh +++ b/test/default.sh @@ -10,8 +10,8 @@ rm -rf $tempDir cd_and_install_tgz $tempDir init_git -npx --no-install husky install -npx --no-install husky add .husky/pre-commit "echo \"msg from pre-commit hook\" && exit 1" +npx --no husky install +npx --no husky add .husky/pre-commit "echo \"msg from pre-commit hook\" && exit 1" # Debug # cat .husky/* @@ -24,5 +24,5 @@ git add package.json git commit -m "should fail" || echo -e "\e[0;32mOK\e[m" # Uninstall -npx --no-install husky uninstall +npx --no husky uninstall git config core.hooksPath || echo -e "\e[0;32mOK\e[m" diff --git a/test/not-git-dir.sh b/test/not-git-dir.sh index fb4a7e365..2ebb38667 100644 --- a/test/not-git-dir.sh +++ b/test/not-git-dir.sh @@ -10,4 +10,4 @@ rm -rf $tempDir cd_and_install_tgz $tempDir # Should not fail -npx --no-install husky install && echo -e "\e[0;32mOK\e[m" +npx --no husky install && echo -e "\e[0;32mOK\e[m" diff --git a/test/sub-dir.sh b/test/sub-dir.sh index b4e72b619..7020ad779 100644 --- a/test/sub-dir.sh +++ b/test/sub-dir.sh @@ -30,7 +30,7 @@ EOL npm run postinstall # Add hook -npx --no-install husky add pre-commit "echo \"msg from pre-commit hook\" && exit 1" +npx --no husky add pre-commit "echo \"msg from pre-commit hook\" && exit 1" # Debug # cat .husky/*