# Angular 4: Beginner to Pro Course - Unit Testing Issues

**URL:** <https://forum.codewithmosh.com/t/angular-4-beginner-to-pro-course-unit-testing-issues/11797>\
**Category:** Angular\
**Created:** [April 8, 2022, 8:10am UTC](https://forum.codewithmosh.com/t/angular-4-beginner-to-pro-course-unit-testing-issues/11797 "2022-04-08T08:10:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrplatypus](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mrplatypus](https://forum.codewithmosh.com/u/mrplatypus)\
**Post date:** [April 8, 2022, 8:10am UTC](https://forum.codewithmosh.com/t/angular-4-beginner-to-pro-course-unit-testing-issues/11797/1 "2022-04-08T08:10:36Z")

</div>

Hi Forum,

\*\* START: Additional Info for the Forum:  
This is a part copy of a message I sent to Mosh using the online form,  
I appreciate that Angular 4 is Very out of Date, but I am a newbie and wanted a basic grounding in Angular.

In following the course, I am now stuck - Unit Testing Fundamentals;  
I have gotten the samples  
I have run npm install from the command line; yet when I run “ng test” the code reports an error: “No projects support the ‘test’ target.”

The output of ng --version is:  
\*\* ng version output:  
ng --version

```
 _ _ ________
/ \ _ ____ _ _ _| | ___ ___ / ___| | |_ _|

```

/ △ \ | '\_ \ / _` | | | | |/ _` | '\_\_| | | | | | |  
/ \_\_\_ | | | | (_| | |_| | | (_| | | | |_ **| |** _ | |  
/_/ \_\_| |_|\ __, |\__ ,_|_|\ __,_|_| \__ **|** _ **|** _|  
|\_\_\_/

Angular CLI: 12.2.14  
Node: 16.14.2 (Unsupported)  
Package Manager: npm 8.5.0  
OS: win32 x64

Angular:   
… common, compiler, compiler-cli, core, forms, http  
… platform-browser, platform-browser-dynamic, router

## Package Version

@angular-devkit/architect 0.1202.14 (cli-only)  
@angular-devkit/core 12.2.14 (cli-only)  
@angular-devkit/schematics 12.2.14 (cli-only)  
@schematics/angular 12.2.14 (cli-only)  
rxjs 6.6.7 (cli-only)  
typescript 3.5.3 (cli-only)

Warning: The current version of Node (16.14.2) is not supported by Angular.

There is obviously an error as outlined by: “Angular: ”  
Please help to resolve this.

\*\* Message on the online form for Mosh  
Hi Mosh,

Being a somewhat newbie to Angular, I purchased your course.  
Whereas I can understand that it does not cater for later versions of Angular, I would have hoped that the examples (with tests) would work.

I have reached Unit 4 of the Unit Testing and its fundamentals;  
I have downloaded your sample code;  
I have navigated to the root folder and run “npm install”  
There were a lot of errors about different classes etc. being deprecated.  
When I run “ng test” I received the following error:  
“No projects support the ‘test’ target.”

Please help.  
I could send you the log which will evidence the warnings etc.

Thanks

Dave

---

<div class="post-metadata">

**Author:** ![mrplatypus](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mrplatypus](https://forum.codewithmosh.com/u/mrplatypus)\
**Post date:** [April 11, 2022, 10:11am UTC](https://forum.codewithmosh.com/t/angular-4-beginner-to-pro-course-unit-testing-issues/11797/2 "2022-04-11T10:11:50Z")

</div>

Hello? No replies, yet some people have viewed this posting…

---

<div class="post-metadata">

**Author:** ![jmrunkle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jmrunkle/32/3765_2.png) [@jmrunkle](https://forum.codewithmosh.com/u/jmrunkle)\
**Post date:** [June 29, 2022, 4:19am UTC](https://forum.codewithmosh.com/t/angular-4-beginner-to-pro-course-unit-testing-issues/11797/3 "2022-06-29T04:19:24Z")

</div>

This problem has come up many times. See this for one of many ways to get testing working again: [SOLUTION: How to get Angular Unit Testing to run ng test](https://forum.codewithmosh.com/t/solution-how-to-get-angular-unit-testing-to-run-ng-test/10090)
