aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/tests/api/ci-2.sh
blob: 016df1cfc246650a09f3622e17f06ceeea228851 (plain) (tree)
1
2
3
4
5
6
7
8
9
10






                                                                                   
                                                                                  

                                                                       
#!/usr/bin/env sh

set -eu

serverFiles=$(find server/tests/api/server -type f | grep -v index.ts | xargs echo)
usersFiles=$(find server/tests/api/users -type f | grep -v index.ts | xargs echo)

MOCHA_PARALLEL=true npm run mocha -- --parallel --jobs $1 --timeout 30000 --exit \
  --require ts-node/register --require tsconfig-paths/register --bail \
  $serverFiles $usersFiles