Skip to content

Instantly share code, notes, and snippets.

@adamrbennett
adamrbennett / bootstrap-tests.sh
Created April 26, 2017 19:52
Bootstrap an existing Node.js project to enable testing with Mocha, Chai and Sinon
#!/usr/bin/env bash
if [ $# == 0 ]; then
echo "Usage: ./bootstrap-tests.sh [app path]"
exit -1
fi
APP_PATH="$1"
# npm install --prefix will create an 'etc' directory