From 4c8ef0ec684f5dd1856ec751420b1e85369fd1bf Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 21 Oct 2019 16:24:06 +0200 Subject: Add tsconfig-paths registration to mocha --- scripts/ci.sh | 4 ++-- scripts/test.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') 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 if [ "$1" = "misc" ]; then npm run build -- --light-fr - mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/client.ts \ + mocha --timeout 5000 --exit --require ts-node/register --require tsconfig-paths/register --bail server/tests/client.ts \ server/tests/feeds/index.ts \ server/tests/misc-endpoints.ts \ server/tests/helpers/index.ts \ @@ -19,7 +19,7 @@ if [ "$1" = "misc" ]; then elif [ "$1" = "cli" ]; then npm run build:server CC=gcc-4.9 CXX=g++-4.9 npm run setup:cli - mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/cli/index.ts + mocha --timeout 5000 --exit --require ts-node/register --require tsconfig-paths/register --bail server/tests/cli/index.ts elif [ "$1" = "api-1" ]; then npm run build:server 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 npm run ci -- lint -mocha --exit --require ts-node/register/type-check --bail server/tests/index.ts +mocha --exit --require ts-node/register/type-check --require tsconfig-paths/register --bail server/tests/index.ts -- cgit v1.2.3