We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21bc342 commit 356714bCopy full SHA for 356714b
test/7_command_not_found.sh
@@ -0,0 +1,13 @@
1
+. "$(dirname -- "$0")/functions.sh"
2
+setup
3
+install
4
+
5
+npx --no-install husky install
6
7
+# Test core.hooksPath
8
+expect_hooksPath_to_be ".husky"
9
10
+# Test pre-commit with 127 exit code
11
+git add package.json
12
+npx --no-install husky add .husky/pre-commit "exit 127"
13
+expect 1 "git commit -m foo"
test/all.sh
@@ -7,3 +7,4 @@ sh test/3_from-sub-dir.sh
sh test/4_not-git-dir.sh
sh test/5_set-add.sh
sh test/6_git_command_not_found.sh
+sh test/7_command_not_found.sh
0 commit comments