docs(angular): add testing requests content (#6926)

pull/6930/head
J. Degand 3 months ago committed by GitHub
parent ea99772fa5
commit f8a83c3c81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      src/data/roadmaps/angular/content/testing-requests@4xt0m5jkUqB4Z-krcFBuL.md

@ -1 +1,9 @@
# Testing Requests
As for any external dependency, you must mock the HTTP backend so your tests can simulate interaction with a remote server. The `@angular/common/http/testing` library provides tools to capture requests made by the application, make assertions about them, and mock the responses to emulate your backend's behavior.
Visit the following resources to learn more:
- [@official@Angular Official Docs - Testing Requests](https://angular.dev/guide/http/testing)
- [@video@Import Http Client Testing Module and make Test call with the HttpClient](https://www.youtube.com/watch?v=Sgy_RRXC9As)
- [@video@HTTP | Angular Unit Testing Made Easy: Comprehensive Guide to HTTP Testing](https://www.youtube.com/watch?v=7rlwryYhGzs)
Loading…
Cancel
Save