Run the anuglar test project with "Ng test" get error

I am learning Angular unit test course and try to run the project with : Ng test , get error: No projects support the ‘test’ target.

I ran in to the same issue and solved is using the following method: SOLUTION: How to get Angular Unit Testing to run ng test