Angular unit tests
Everything we have said in the previous sections of this chapter regarding the ASP.NET Core testing purposes, meanings, and approaches is also valid for Angular.
Luckily enough, this time, we won't need to install anything since the ASP.NET Core and Angular Visual Studio template that we've used to create our WorldCities
project already contains everything we need to write app tests for our Angular application.
More specifically, we can already count on the following packages, which we briefly introduced in Chapter 2, Looking Around:
- Jasmine: A JavaScript testing framework that fully supports the BDD approach that we talked about earlier
- Karma: A tool that lets us spawn browsers and run our Jasmine tests inside them (and show their results) from the command line
- Protractor: An end-to-end test framework that runs tests against Angular applications from within a real browser, interacting with it as if it were a real user ...