#!/bin/bash set -eou pipefail # Run tests inside the integration folder DIR="${BASH_SOURCE%/*}" pushd "${DIR}/../test-snapshot" >/dev/null || exit trap finish EXIT function finish { popd >/dev/null } # cleanup rm -rf output-expected # run thumbsup node ../bin/thumbsup.js --config config.json --output output-expected