6 echo "Need test suite argument."
10 killall -q peertube || true
12 if [ "$1" = "misc" ]; then
13 npm run build -- --light-fr
14 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/client.ts \
15 server/tests/feeds/index.ts \
16 server/tests/misc-endpoints.ts \
17 server/tests/helpers/index.ts
18 elif [ "$1" = "api" ]; then
20 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index.ts
21 elif [ "$1" = "cli" ]; then
23 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/cli/index.ts
24 elif [ "$1" = "api-1" ]; then
26 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-1.ts
27 elif [ "$1" = "api-2" ]; then
29 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-2.ts
30 elif [ "$1" = "api-3" ]; then
32 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-3.ts
33 elif [ "$1" = "api-3" ]; then
35 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-4.ts
36 elif [ "$1" = "lint" ]; then
37 npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts"
42 elif [ "$1" = "jest" ]; then