aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-10 15:02:25 +0100
committerChocobozzz <me@florianbigard.com>2020-11-10 15:04:08 +0100
commit93ab83893d6c59c90fd92229af5ab2977d05940b (patch)
tree01a68306396900a0f4e1266e2634222718884bff
parent0223291c45809d4a9dcc2be9ac4aa9406610a89c (diff)
downloadPeerTube-93ab83893d6c59c90fd92229af5ab2977d05940b.tar.gz
PeerTube-93ab83893d6c59c90fd92229af5ab2977d05940b.tar.zst
PeerTube-93ab83893d6c59c90fd92229af5ab2977d05940b.zip
Fix npm run test
-rw-r--r--.github/CONTRIBUTING.md2
-rwxr-xr-xscripts/test.sh8
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
192If you just want to run 1 test (which is what you want to debug a specific test rapidly): 192If you just want to run 1 test (which is what you want to debug a specific test rapidly):
193 193
194``` 194```
195$ npm run mocha -- --exit -r ts-node/register -r tsconfig-paths/register --bail server/tests/api/index.ts 195$ TS_NODE_FILES=true npm run mocha -- --exit -r ts-node/register -r tsconfig-paths/register --bail server/tests/api/videos/single-server.ts
196``` 196```
197 197
198Instance configurations are in `config/test-{1,2,3,4,5,6}.yaml`. 198Instance 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
7 7
8npm run ci -- lint 8npm run ci -- lint
9 9
10mocha --exit --require ts-node/register/type-check --require tsconfig-paths/register --bail server/tests/index.ts 10npm run ci -- misc
11npm run ci -- cli
12npm run ci -- api-1
13npm run ci -- api-2
14npm run ci -- api-3
15npm run ci -- api-4
16npm run ci -- external-plugins