Home

Published

- 1 min read

execute only one test spec with angular-cli (ng test)

img of execute only one test spec with angular-cli (ng test)

The solution for this is noted below

execute only one test spec with angular-cli (ng test)

Solution

   // ng test --main directory/filename.spec.ts
ng test --main src/app/services/dealer.service.spec.ts

Try other methods by searching on the site. That is if this doesn’t work