Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add doc to run only one unit test

Chocobozzz76434ec8e387
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 5a484fbbd7..3c8e6413c7 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -146,3 +146,9 @@ Build the application and run the unit/integration tests:
$ npm run build
$ npm test
```
+
+If you just want to run 1 test:
+
+```
+$ npm run mocha -- --exit --require ts-node/register/type-check --bail server/tests/api/index.ts
+```
diff --git a/package.json b/package.json
index 6a6275fb9f..5f7299b9d0 100644
--- a/package.json
+++ b/package.json
@@ -47,6 +47,7 @@
"nodemon": "nodemon",
"ts-node": "ts-node",
"tslint": "tslint",
+ "mocha": "mocha",
"travis": "scripty",
"release": "scripty",
"client-report": "scripty"