I finished learning how to UNIT test my Angular projects, but I also wanted to INTEGRATION test them. It’s also really easy to get the sample files to work. Here’s what I did:
-
Download the “integration-testing-demo.zip” file in the “02- The Setup Code” section.
-
Create a new Angular project. So, for example, in a new directory run:
ng new new-integration-demo
Now, delete the APP folder. You’ll replace it with another one.
- Extract the integration-testing-demo.zip folder and COPY the APP folder and drop it into your new projects src folder. In my case, I put the files in new-testing-demo/src/
- Run “ng test” and follow along with Mosh’s videos