Add doc to run only one unit test
authorChocobozzz <me@florianbigard.com>
Thu, 19 Apr 2018 14:23:09 +0000 (16:23 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 19 Apr 2018 14:23:09 +0000 (16:23 +0200)
.github/CONTRIBUTING.md
package.json

index 5a484fbbd7c0d1b2a5c562e9c77c0f1162f6fac1..3c8e6413c722fd3aa9b2252f38a51137d248d2a6 100644 (file)
@@ -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
+```
index 6a6275fb9f9df6cbb87297ea2918b5b17daaa8d6..5f7299b9d03212442794655ef1db4e42fdc6138c 100644 (file)
@@ -47,6 +47,7 @@
     "nodemon": "nodemon",
     "ts-node": "ts-node",
     "tslint": "tslint",
+    "mocha": "mocha",
     "travis": "scripty",
     "release": "scripty",
     "client-report": "scripty"