#!/usr/bin/env bash

where=${1:-.}
tests=$1
if [ -d $where ]; then
  tests=`find $where -type f -name '*-test.*' -not -path './node_modules/*'`
fi

for test in $tests; do
  node $2 $test
done
