How to run a multiple .spec.ts file in an angular-cli project?

617 Views Asked by At

I have the multiple spec.ts file path like this "src/app/app-routing/app-routing.module.spec.ts" "src/app/modules/dashboard/components/bill/gst-bill.component.html"

I want to run the test case for this spec.ts files, only using angular-cli in a single command. Is this possible?

1

There are 1 best solutions below

0
On

Instead changine the path with test.ts file we can add the "f" before describe block with the spec.ts files that alone you want to run as fdescribe and then try to run,

ng test

only specs with particular spec.ts file will run