From 93ab83893d6c59c90fd92229af5ab2977d05940b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 10 Nov 2020 15:02:25 +0100 Subject: Fix npm run test --- .github/CONTRIBUTING.md | 2 +- scripts/test.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 2af5c236a..1d034944d 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -192,7 +192,7 @@ $ npm test If you just want to run 1 test (which is what you want to debug a specific test rapidly): ``` -$ npm run mocha -- --exit -r ts-node/register -r tsconfig-paths/register --bail server/tests/api/index.ts +$ TS_NODE_FILES=true npm run mocha -- --exit -r ts-node/register -r tsconfig-paths/register --bail server/tests/api/videos/single-server.ts ``` Instance configurations are in `config/test-{1,2,3,4,5,6}.yaml`. diff --git a/scripts/test.sh b/scripts/test.sh index 8961ddd7e..32034531d 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -7,4 +7,10 @@ npm run setup:cli npm run ci -- lint -mocha --exit --require ts-node/register/type-check --require tsconfig-paths/register --bail server/tests/index.ts +npm run ci -- misc +npm run ci -- cli +npm run ci -- api-1 +npm run ci -- api-2 +npm run ci -- api-3 +npm run ci -- api-4 +npm run ci -- external-plugins -- cgit v1.2.3