Add doc to run only one unit test

This commit is contained in:
Chocobozzz 2018-04-19 16:23:09 +02:00
parent 6cced8f915
commit 76434ec8e3
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 7 additions and 0 deletions

View 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
```

View file

@ -47,6 +47,7 @@
"nodemon": "nodemon",
"ts-node": "ts-node",
"tslint": "tslint",
"mocha": "mocha",
"travis": "scripty",
"release": "scripty",
"client-report": "scripty"