In this video we use Jest to create unit tests for our feed controller and service. The feed controller has guards and other dependencies are mocked. We also unit test our service, which has an observable. After watching this video you will understand how to do unit tests with Jest, particularly within a NestJS environment.
--------------------------------------------------
Recommended Udemy courses
--------------------------------------------------
NestJS - Zero to Hero: https://tinyurl.com/3rxsz669
Angular - The Complete Guide: https://tinyurl.com/4h5rmpsj
Understanding TypeScript: https://tinyurl.com/9wz6fp7k
React - The Complete Guide: https://tinyurl.com/2t6v5yeu
Docker Mastery (with Kubernetes + Swarm): https://tinyurl.com/yeymdnhn
Playlist: https://www.youtube.com/playlist?list=PL9_OU-1M9E_ut3NA04C4eHZuuAFQOUwT0
GitHub: https://github.com/Jon-Peppinck/linkedin-clone