diff options
-rwxr-xr-x | scripts/test.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/test.sh b/scripts/test.sh index cae9381..6cbe3dc 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,7 +1,10 @@ #!/usr/bin/env bash -cd core -yarn test || exit 1 -cd ../server -yarn test || exit 1 -cd ../client -yarn test || exit 1 + +declare -a arr=("core" "client" "server") + +for i in "${arr[@]}" +do + cd $i + yarn test + cd .. +done |