1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/usr/bin/env bash declare -a arr=("core" "client" "server") # start with unit tests for # each package for i in "${arr[@]}" do cd $i yarn test cd .. done # if they pass, # run the integration tests cd integration yarn test cd ..