6 echo "Need test suite argument."
10 if [ "$1" = "misc" ]; then
12 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/client.ts server/tests/activitypub.ts
13 elif [ "$1" = "api" ]; then
15 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index.ts
16 elif [ "$1" = "cli" ]; then
18 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/cli/index.ts
19 elif [ "$1" = "api-fast" ]; then
21 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-fast.ts
22 elif [ "$1" = "api-slow" ]; then
24 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-slow.ts
25 elif [ "$1" = "lint" ]; then
30 npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts"