Companies Home Search Profile

Unit Testing in Nestjs - The Complete Guide

Focused View

Haider Malik

2:55:24

383 View
  • 1 - Getting Setup.mp4
    05:00
  • 1 - Nest-crud-with-postgres-complete.zip
  • 1 - how to install postgresql and pgadmin 4 on mac os.zip
  • 1 - how to install postgresql & pgadmin 4 on windows 10.zip
  • 2 - Setting Database Configurations.mp4
    10:00
  • 3 - Creating Database Service.mp4
    09:54
  • 4 - Creating Service and Repository.mp4
    10:04
  • 5 - Get Records from DB.mp4
    08:50
  • 6 - Find one record by ID.mp4
    08:49
  • 7 - Create new record in DB.mp4
    12:11
  • 8 - Delete Record.mp4
    09:44
  • 9 - Nest-crud-with-postgres-complete.zip
  • 9 - Update Record.mp4
    09:37
  • 10 - Creating Mock Functions.mp4
    09:41
  • 10 - Nest-crud-testing-complete.zip
  • 11 - Testing CRUD features part 1.mp4
    09:41
  • 12 - Nest-crud-testing-complete.zip
  • 12 - Testing CRUD features part 2.mp4
    09:33
  • 13 - Creating Mock Functions.mp4
    09:20
  • 13 - getting-started-complete.zip
  • 13 - starter-code.zip
  • 14 - Write Logic before running tests.mp4
    09:20
  • 15 - Test the update feature.mp4
    10:47
  • 16 - Test the delete Feature.mp4
    09:21
  • 16 - testing-crud-complete.zip
  • 17 - Test the Find user Feature.mp4
    09:21
  • 18 - Test the Create user Feature.mp4
    09:21
  • 19 - Run the Test for create user.mp4
    04:50
  • Description


    Learn Unit Testing with NestJs, Jest, GraphQL, Prisma, and Postgres

    What You'll Learn?


    • Build CRUD REST APIs with Nestjs, Postgres
    • Learn Unit Testing with Jest, Nestjs, and Postgres
    • Mocking in Jest Framework
    • Test the GraphQL and Prisma based API
    • Learn how to write unit test for CRUD GraphQL based APIs
    • Learn how to run native SQL queries in NestJs

    Who is this for?


  • NestJs developers who want to learn how to do unit testing
  • NodeJs developers who want to learn how to do testing in Typescript and Jest
  • NodeJs developers who want to learn the Jest Framework
  • More details


    Description

    Test-driven development is a powerful tool for preventing bugs within your application. NestJs Unit testing is the method of testing small pieces of code/components in isolation in your NestJS application. This helps in improving the code quality and helps in finding bugs early on in the development life cycle. This also provides an added advantage to the users in the way that they can add any new features without breaking any other part of their application.


    Why Unit Testing?

    * It helps you to write better code


    * It enables you to catch bugs earlier


    * It makes your code easy to refactor


    * It makes you more efficient at writing code



    We are going to use the Jest framework in this course. Jest is an open-source Javascript testing framework developed by Facebook. It was mainly built for React, Node, Babel, TypeScript, Angular, Vue, and JavaScript-based applications. It primarily focuses on simplicity and support for large web applications. Jest was built on top of Jasmine with multiple layers.


    In this course, We are going to build two different applications. In the first application, we are going to build the CRUD(create, read, update, delete) endpoints using Nestjs, and Postgres without TypeORM

    


    In the next part, we are going to test GraphQL and Prisma API. I will teach you how to write unit tests using the Jest framework. You will also learn mocking in Jest and much more.


    Who this course is for:

    • NestJs developers who want to learn how to do unit testing
    • NodeJs developers who want to learn how to do testing in Typescript and Jest
    • NodeJs developers who want to learn the Jest Framework

    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Haider Malik
    Haider Malik
    Instructor's Courses
    Haider Malik is the founder of Grow Business Revenue. He is a full-stack developer and business owner. He is running his own IT service based Agency He has full team of developers. He is passionate about everything JavaScript, and he loves exploring new libraries.He’s had extensive experience developing software and working with teams to improve how software is developed to meet business objectives.Although his primary focus is on outcomes, implementation often includes technical competency
    Students take courses primarily to improve job-related skills.Some courses generate credit toward technical certification. Udemy has made a special effort to attract corporate trainers seeking to create coursework for employees of their company.
    • language english
    • Training sessions 19
    • duration 2:55:24
    • Release Date 2022/12/11