Back to Browse

NestJS Unit Testing - Test Controller (with Guards) and Service

12.4K views
Aug 13, 2021
1:05:59

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

Download

1 formats

Video Formats

360pmp491.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

NestJS Unit Testing - Test Controller (with Guards) and Service | NatokHD