]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | ||
3 | set -eu | |
4 | ||
5 | npm run clean:server:test | |
6 | ||
7 | config="{" | |
8 | config+=" \"rates_limit\": { \"api\": { \"max\": 5000 }, \"login\": { \"max\": 5000 } }" | |
9 | config+=", \"log\": { \"level\": \"warn\" }" | |
10 | config+=", \"signup\": { \"enabled\": false }" | |
11 | config+=", \"transcoding\": { \"enabled\": false }" | |
12 | config+="}" | |
13 | ||
14 | npm run concurrently -- -k -s first \ | |
15 | "cd client/e2e && ../node_modules/.bin/wdio run ./wdio.local.conf.ts" \ | |
16 | "NODE_ENV=test NODE_CONFIG='$config' NODE_APP_INSTANCE=1 node dist/server" \ | |
17 | "NODE_ENV=test NODE_CONFIG='$config' NODE_APP_INSTANCE=2 node dist/server" |