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:
- Download the “testing-demo.zip” file in the “04- Unit Testing Fundamentals” section.
- Create a new Angular project. So, for example, in a new directory
ng new new-testing-demo
- 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
- Run “ng test” and follow along with Mosh’s videos
That’s it! Happy coding everyone.