rm -rf compiled_tests node_modules/.cache
set -ex
babeljs tests -d compiled_tests
cp -r tests/helpers compiled_tests/
NODE_PATH=debian/tests/test_modules:node_modules:/usr/share/nodejs:/usr/lib/nodejs mocha -R spec compiled_tests
rm -rf compiled_tests
