I am trying to run unit tests using Karma and Jasmine using the ng test. when I issue the following command:
ng test --watch=false --code-coverage --main ./src/main/resources/public/scripts/xyz/workspace/commons/interceptors/mgr.ng.spec.ts
It works without any issues.
When I try the following command to run all scripts in that directory:
ng test --watch=false --code-coverage --include=src/main/resources/public/scripts/xyz/workspace/commons/interceptors/*.ng.spec.ts
I get the following error:
Specified patterns: "src/main/resources/public/scripts/xyz/workspace/commons/interceptors/*.ng.spec.ts" did not match any spec files
Any idea what is happening here? I tried many variations and it does not look like the include option is working at all.