mirror of
https://github.com/hanzoai/husky.git
synced 2026-09-24 16:59:45 +00:00
14 lines
281 B
JavaScript
14 lines
281 B
JavaScript
. "$(dirname -- "$0")/functions.sh"
|
|
setup
|
|
install
|
|
|
|
npx --no-install husky install
|
|
|
|
# Test core.hooksPath
|
|
expect_hooksPath_to_be ".husky"
|
|
|
|
# Test pre-commit with 127 exit code
|
|
git add package.json
|
|
npx --no-install husky add .husky/pre-commit "exit 127"
|
|
expect 1 "git commit -m foo"
|