aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
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 /scripts
parente199856bb79868ba4c027cf4a26ff2bd909b3fd4 (diff)
downloadPeerTube-4c8ef0ec684f5dd1856ec751420b1e85369fd1bf.tar.gz
PeerTube-4c8ef0ec684f5dd1856ec751420b1e85369fd1bf.tar.zst
PeerTube-4c8ef0ec684f5dd1856ec751420b1e85369fd1bf.zip
Add tsconfig-paths registration to mocha
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci.sh4
-rwxr-xr-xscripts/test.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/ci.sh b/scripts/ci.sh
index 1819f73dd..c023ddf98 100755
--- a/scripts/ci.sh
+++ b/scripts/ci.sh
@@ -11,7 +11,7 @@ killall -q peertube || true
11 11
12if [ "$1" = "misc" ]; then 12if [ "$1" = "misc" ]; then
13 npm run build -- --light-fr 13 npm run build -- --light-fr
14 mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/client.ts \ 14 mocha --timeout 5000 --exit --require ts-node/register --require tsconfig-paths/register --bail server/tests/client.ts \
15 server/tests/feeds/index.ts \ 15 server/tests/feeds/index.ts \
16 server/tests/misc-endpoints.ts \ 16 server/tests/misc-endpoints.ts \
17 server/tests/helpers/index.ts \ 17 server/tests/helpers/index.ts \
@@ -19,7 +19,7 @@ if [ "$1" = "misc" ]; then
19elif [ "$1" = "cli" ]; then 19elif [ "$1" = "cli" ]; then
20 npm run build:server 20 npm run build:server
21 CC=gcc-4.9 CXX=g++-4.9 npm run setup:cli 21 CC=gcc-4.9 CXX=g++-4.9 npm run setup:cli
22 mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/cli/index.ts 22 mocha --timeout 5000 --exit --require ts-node/register --require tsconfig-paths/register --bail server/tests/cli/index.ts
23elif [ "$1" = "api-1" ]; then 23elif [ "$1" = "api-1" ]; then
24 npm run build:server 24 npm run build:server
25 sh ./server/tests/api/ci-1.sh 2 25 sh ./server/tests/api/ci-1.sh 2
diff --git a/scripts/test.sh b/scripts/test.sh
index 1b6b29b66..8961ddd7e 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -7,4 +7,4 @@ npm run setup:cli
7 7
8npm run ci -- lint 8npm run ci -- lint
9 9
10mocha --exit --require ts-node/register/type-check --bail server/tests/index.ts 10mocha --exit --require ts-node/register/type-check --require tsconfig-paths/register --bail server/tests/index.ts