mirror of https://github.com/Chocobozzz/PeerTube
Add doc to run only one unit test
parent
6cced8f915
commit
76434ec8e3
|
@ -146,3 +146,9 @@ Build the application and run the unit/integration tests:
|
||||||
$ npm run build
|
$ npm run build
|
||||||
$ npm test
|
$ 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
|
||||||
|
```
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
"nodemon": "nodemon",
|
"nodemon": "nodemon",
|
||||||
"ts-node": "ts-node",
|
"ts-node": "ts-node",
|
||||||
"tslint": "tslint",
|
"tslint": "tslint",
|
||||||
|
"mocha": "mocha",
|
||||||
"travis": "scripty",
|
"travis": "scripty",
|
||||||
"release": "scripty",
|
"release": "scripty",
|
||||||
"client-report": "scripty"
|
"client-report": "scripty"
|
||||||
|
|
Loading…
Reference in New Issue