15
Writing Tests in Angular
In the previous chapter, we learned how to secure an Angular application by adding user authentication, retrieving user information, and protecting routes.
What if I told you that writing tests in the frontend could be fun and exciting? This chapter will show you how good the developer experience of Cypress E2E, short for end-to-end testing, is. Why do frontend developers love the Cypress framework?
This chapter will teach you how to write basic Cypress tests and mock HTTP requests for testing.
In this chapter, we will cover the following topics:
- Getting started with Cypress
- Writing a simple Cypress test
- Mocking HTTP responses and intercepting HTTP requests
Technical requirements
The following link will take you ...
Get Spring Boot and Angular now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.