Add tsconfig-paths registration to mocha
This commit is contained in:
parent
e199856bb7
commit
4c8ef0ec68
6 changed files with 11 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue