Skip to content

Instantly share code, notes, and snippets.

@sroccaserra
Created October 5, 2020 15:52
Show Gist options
  • Save sroccaserra/eedd607ff8c439635db7285eb1fe7203 to your computer and use it in GitHub Desktop.
Save sroccaserra/eedd607ff8c439635db7285eb1fe7203 to your computer and use it in GitHub Desktop.
Run unit tests, then run all tests in tests/*, then report global status
status=0
npm run test:api:unit || status=1
for dir in $(find tests/* -maxdepth 0 -type d -not -path tests/unit)
do
npm run test:api:path -- $dir || status=1
done
exit $status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment