File: 7_node_modules_path.sh

package info (click to toggle)
node-husky 9.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 952 kB
  • sloc: sh: 182; javascript: 79; makefile: 9
file content (12 lines) | stat: -rwxr-xr-x 240 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
. test/functions.sh
setup
install

npx --no-install husky

# Test pre-commit
git add package.json
# Should not fail when running hook
echo 'echo "$PATH" | grep "node_modules/.bin"' > .husky/pre-commit
expect 0 "git commit -m foo"