Attempting to conduct unit tests utilizing Karma and Jasmine through the ng test is proving to be a bit challenging. Upon issuing the following command:
ng test --watch=false --code-coverage --main ./src/main/resources/public/scripts/xyz/workspace/commons/interceptors/mgr.ng.spec.ts
The command runs smoothly without any issues.
However, when trying to run all scripts within a specific directory using the following command:
ng test --watch=false --code-coverage --include=src/main/resources/public/scripts/xyz/workspace/commons/interceptors/*.ng.spec.ts
An error occurs stating:
No spec files matched the specified patterns: "src/main/resources/public/scripts/xyz/workspace/commons/interceptors/*.ng.spec.ts"
Can anyone shed some light on what might be causing this problem? I've attempted various iterations and it appears that the include option isn't functioning as expected.