How to single run tests in Angular 6 app

Reading Time: < 1 minutes

 176 total views,  2 views today

1) Github Issue

ng test --watch=false

2) Add script to package.json

"scripts": {
   "sr-tests": "ng test --watch=false"
 }

With npm,

 npm run sr-tests

or with yarn,

 yarn sr-tests