test.sh 227 B

123456789101112131415161718
  1. #!/bin/sh
  2. set -eu
  3. set -x
  4. # Make require("hbsfy") work
  5. if [ ! -h node_modules/hbsfy ]; then
  6. rm -rf node_modules/hbsfy
  7. ln -fs .. node_modules/hbsfy
  8. fi
  9. cd test/
  10. for test_file in *test.js
  11. do
  12. node "$test_file"
  13. done