Files
husky/test/6_command_not_found.sh
T
2024-01-25 02:49:33 +01:00

15 lines
248 B
Bash
Executable File

#!/bin/sh
. test/functions.sh
setup
install
npx --no-install husky
# Test core.hooksPath
expect_hooksPath_to_be ".husky/_"
# Test pre-commit with 127 exit code
git add package.json
echo "exit 127" >.husky/pre-commit
expect 1 "git commit -m foo"