Created
October 5, 2020 15:52
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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