summaryrefslogtreecommitdiff
path: root/scripts/test.sh
blob: 737c6534a8b59d7b9725d49b08222472b1fef1ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash

declare -a arr=("core" "client" "server")

# start by testing
# library code
cd lib
yarn test
cd ..
# then 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 ..