aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-10-21 16:24:06 +0200
committerChocobozzz <me@florianbigard.com>2019-10-21 16:24:06 +0200
commit4c8ef0ec684f5dd1856ec751420b1e85369fd1bf (patch)
treebb0bb0e557053b3d889090d928bdda2b34c0b1f2 /server/tests
parente199856bb79868ba4c027cf4a26ff2bd909b3fd4 (diff)
downloadPeerTube-4c8ef0ec684f5dd1856ec751420b1e85369fd1bf.tar.gz
PeerTube-4c8ef0ec684f5dd1856ec751420b1e85369fd1bf.tar.zst
PeerTube-4c8ef0ec684f5dd1856ec751420b1e85369fd1bf.zip
Add tsconfig-paths registration to mocha
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/ci-1.sh2
-rw-r--r--server/tests/api/ci-2.sh5
-rw-r--r--server/tests/api/ci-3.sh2
-rw-r--r--server/tests/api/ci-4.sh5
4 files changed, 8 insertions, 6 deletions
diff --git a/server/tests/api/ci-1.sh b/server/tests/api/ci-1.sh
index 90ffd568b..faa440785 100644
--- a/server/tests/api/ci-1.sh
+++ b/server/tests/api/ci-1.sh
@@ -6,5 +6,5 @@ checkParamFiles=$(find server/tests/api/check-params -type f | grep -v index.ts
6notificationsFiles=$(find server/tests/api/notifications -type f | grep -v index.ts | xargs echo) 6notificationsFiles=$(find server/tests/api/notifications -type f | grep -v index.ts | xargs echo)
7searchFiles=$(find server/tests/api/search -type f | grep -v index.ts | xargs echo) 7searchFiles=$(find server/tests/api/search -type f | grep -v index.ts | xargs echo)
8 8
9MOCHA_PARALLEL=true npm run mocha -- --timeout 30000 --exit --require ts-node/register --bail \ 9MOCHA_PARALLEL=true npm run mocha -- --timeout 30000 --exit --require ts-node/register --require tsconfig-paths/register --bail \
10 $notificationsFiles $searchFiles $checkParamFiles 10 $notificationsFiles $searchFiles $checkParamFiles
diff --git a/server/tests/api/ci-2.sh b/server/tests/api/ci-2.sh
index 16ab585e9..52c839d12 100644
--- a/server/tests/api/ci-2.sh
+++ b/server/tests/api/ci-2.sh
@@ -5,5 +5,6 @@ set -eu
5serverFiles=$(find server/tests/api/server -type f | grep -v index.ts | xargs echo) 5serverFiles=$(find server/tests/api/server -type f | grep -v index.ts | xargs echo)
6usersFiles=$(find server/tests/api/users -type f | grep -v index.ts | xargs echo) 6usersFiles=$(find server/tests/api/users -type f | grep -v index.ts | xargs echo)
7 7
8MOCHA_PARALLEL=true npm run mocha-parallel-tests -- --max-parallel $1 --timeout 30000 --exit --require ts-node/register --bail \ 8MOCHA_PARALLEL=true npm run mocha-parallel-tests -- --max-parallel $1 --timeout 30000 --exit \
9 $serverFiles $usersFiles 9 --require ts-node/register --require tsconfig-paths/register --bail \
10 $serverFiles $usersFiles
diff --git a/server/tests/api/ci-3.sh b/server/tests/api/ci-3.sh
index 7aeea7fcb..ae5bb735a 100644
--- a/server/tests/api/ci-3.sh
+++ b/server/tests/api/ci-3.sh
@@ -4,5 +4,5 @@ set -eu
4 4
5videosFiles=$(find server/tests/api/videos -type f | grep -v index.ts | xargs echo) 5videosFiles=$(find server/tests/api/videos -type f | grep -v index.ts | xargs echo)
6 6
7npm run mocha -- --timeout 30000 --exit --require ts-node/register --bail \ 7npm run mocha -- --timeout 30000 --exit --require ts-node/register --require tsconfig-paths/register --bail \
8 $videosFiles 8 $videosFiles
diff --git a/server/tests/api/ci-4.sh b/server/tests/api/ci-4.sh
index 74809e1ad..22785cf33 100644
--- a/server/tests/api/ci-4.sh
+++ b/server/tests/api/ci-4.sh
@@ -5,5 +5,6 @@ set -eu
5redundancyFiles=$(find server/tests/api/redundancy -type f | grep -v index.ts | xargs echo) 5redundancyFiles=$(find server/tests/api/redundancy -type f | grep -v index.ts | xargs echo)
6activitypubFiles=$(find server/tests/api/activitypub -type f | grep -v index.ts | xargs echo) 6activitypubFiles=$(find server/tests/api/activitypub -type f | grep -v index.ts | xargs echo)
7 7
8MOCHA_PARALLEL=true npm run mocha-parallel-tests -- --max-parallel $1 --timeout 30000 --exit --require ts-node/register --bail \ 8MOCHA_PARALLEL=true npm run mocha-parallel-tests -- --max-parallel $1 --timeout 30000 --exit \
9 $redundancyFiles $activitypubFiles 9 --require ts-node/register --require tsconfig-paths/register --bail \
10 $redundancyFiles $activitypubFiles