# SOLUTION: How to get Angular Unit Testing to run ng test

**URL:** <https://forum.codewithmosh.com/t/solution-how-to-get-angular-unit-testing-to-run-ng-test/10090>\
**Category:** Angular\
**Created:** [January 20, 2022, 5:58pm UTC](https://forum.codewithmosh.com/t/solution-how-to-get-angular-unit-testing-to-run-ng-test/10090 "2022-01-20T17:58:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisUribe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/chrisuribe/32/62_2.png) [@ChrisUribe](https://forum.codewithmosh.com/u/ChrisUribe)\
**Post date:** [January 20, 2022, 5:58pm UTC](https://forum.codewithmosh.com/t/solution-how-to-get-angular-unit-testing-to-run-ng-test/10090/1 "2022-01-20T17:58:59Z")

</div>

I really enjoyed learning how to test my Angular projects with these lessons. Also, it’s really easy to get the sample files to work. Here’s what I did:

1. Download the “testing-demo.zip” file in the “04- Unit Testing Fundamentals” section.
2. Create a new Angular project. So, for example, in a new directory

> ng new new-testing-demo

1. Extract the testing-demo.zip folder on your desktop and grab ONLY the EXAMPLE FOLDERS (01-fundamentals, 02-arrays-and-strings, etc.) and drop them into your new projects “app” folder. In my case, I put the files in new-testing-demo/src/app
2. Run “ng test” and follow along with Mosh’s videos

That’s it! 🙂 Happy coding everyone.

---

<div class="post-metadata">

**Author:** ![miu](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@miu](https://forum.codewithmosh.com/u/miu)\
**Post date:** [January 20, 2022, 6:31pm UTC](https://forum.codewithmosh.com/t/solution-how-to-get-angular-unit-testing-to-run-ng-test/10090/2 "2022-01-20T18:31:07Z")

</div>

thank you , it is very helpful.

---

<div class="post-metadata">

**Author:** ![ChrisUribe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/chrisuribe/32/62_2.png) [@ChrisUribe](https://forum.codewithmosh.com/u/ChrisUribe)\
**Post date:** [January 21, 2022, 5:13pm UTC](https://forum.codewithmosh.com/t/solution-how-to-get-angular-unit-testing-to-run-ng-test/10090/3 "2022-01-21T17:13:12Z")

</div>

@miu I also made another post for the INTEGRATION testing section - [SOLUTION: How to get Angular Integration Testing to run ng test](https://forum.codewithmosh.com/t/solution-how-to-get-angular-integration-testing-to-run-ng-test/10117)

Check it out if you have any issues getting this section up and running.

---

<div class="post-metadata">

**Author:** ![afactor](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@afactor](https://forum.codewithmosh.com/u/afactor)\
**Post date:** [September 22, 2022, 12:53am UTC](https://forum.codewithmosh.com/t/solution-how-to-get-angular-unit-testing-to-run-ng-test/10090/4 "2022-09-22T00:53:40Z")

</div>

Hi Chris,  
Do you have a solution for the same issue with Authentication and Authorization section?  
Thanks.

---

<div class="post-metadata">

**Author:** ![ChrisUribe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/chrisuribe/32/62_2.png) [@ChrisUribe](https://forum.codewithmosh.com/u/ChrisUribe)\
**Post date:** [September 22, 2022, 2:03am UTC](https://forum.codewithmosh.com/t/solution-how-to-get-angular-unit-testing-to-run-ng-test/10090/5 "2022-09-22T02:03:06Z")

</div>

Hi @afactor,  
I have not written an update my self, but I know others have tried to [update the Authentication and Authorization section](https://forum.codewithmosh.com/t/authentication-and-authorization-section-in-angular-4-beginner-to-pro/11914) for Angular 13.  
I wish you all of the best,  
Chris
