Skip to content

Instantly share code, notes, and snippets.

@outofambit
Created April 17, 2018 22:21
Show Gist options
  • Save outofambit/50f03b02fae2cda9937688bbfb3ab9d6 to your computer and use it in GitHub Desktop.
Save outofambit/50f03b02fae2cda9937688bbfb3ab9d6 to your computer and use it in GitHub Desktop.
Debug script for manually running a test directory with mocha. Useful if there are node exceptions in some files
#!bin/bash
for i in $( ls test ); do
npx mocha test/$i &> /dev/null
if [[ $? != 0 ]]; then
echo $i
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment