I am having this issue when trying to run ng test for a component that I've created. I tried opening in integrated terminal, open a cmd terminal and try there and other things to but I always get that error.
src\apps\some-portal\src\app\created-component this would be the path. Also tried to run from src and I have the same problem.