Unit Testing in Node.js with Jest – e2e Testing & more

Nodejs Unit Testing with Jest, e2e Testing, Test Coverage, Test Driven Development (TDD), Mocking and more

If you have any confusion or question about Unit testing in your mind, then you are at the right place. In this, In-depth Node.js Unit Testing course we will start from scratch and write units test with Jest.

What you’ll learn

  • In depth understanding of unit testing.
  • Will be able to unit testing a complete Node API.
  • Understand all about Mocks, Spy and more.
  • Nodejs unit testing & e2e testing using Jest.
  • Testing a complete REST API.
  • Learn how to write unit tests for errors.
  • e2e testing of Node API.
  • All about Jest.
  • Basics of Test Driven Development (TDD).
  • How to generate Test Coverage Report.
  • much more….

Course Content

  • Introduction –> 2 lectures • 5min.
  • Setting up Environment –> 1 lecture • 2min.
  • *** SOURCE CODE OF PROJECT *** –> 1 lecture • 2min.
  • Basics of Unit Testing in Jest –> 7 lectures • 35min.
  • Lets Unit Test Jobs API –> 10 lectures • 51min.
  • Testing Jobs Resource –> 9 lectures • 43min.
  • Testing Middleware’s –> 4 lectures • 16min.
  • Testing Models –> 3 lectures • 12min.
  • Testing Utils –> 4 lectures • 21min.
  • e2e Testing – Auth –> 6 lectures • 22min.
  • e2e Testing – Jobs Resource –> 5 lectures • 20min.
  • Jest Test Coverage –> 1 lecture • 2min.
  • Test Driven Development (TDD) –> 3 lectures • 18min.
  • Bonus Lecture – Basic of React Unit Testing –> 1 lecture • 1min.
  • Congratulations ? –> 1 lecture • 1min.

Unit Testing in Node.js with Jest - e2e Testing & more

Requirements

If you have any confusion or question about Unit testing in your mind, then you are at the right place. In this, In-depth Node.js Unit Testing course we will start from scratch and write units test with Jest.

 

Unit testing can be really confusing something especially if you are a beginner. In this course, we will start from the basics of Jest and then write units of a complete Jobs API that contains each and every example.

 

We will write unit tests for our controllers, models, utils, middleware, and much more. We will talk about how to handle error cases in Jest and how we can mock different libraries or packages.

 

You don’t need to be a Node.js expert for this course but you should know basic and should how to build an API. We will cover all the particle cases of unit testing.

 

We will also take a deep dive into the e2e Testing in which we will test our API from A-Z to make sure every part of the API is working as expected. We will also learn how to generate a Test Coverage Report with Jest which will give us an idea of how much code of our API is covered in Unit Testing and e2e Testing.

 

====== Topic Covered in this Unit Testing Course ======

 

  • Basics of Unit Testing in Jest
  • Testing API Controllers
  • Testing Middleware’s
  • Testing Models
  • Testing Utils
  • e2e Testing
  • Jest Test Coverage
  • Test Driven Development
  • React Unit Testing Basics – BONUS

 

 

If you are willing to learn or improve your Unit Testing skills then I will see you in the course!

 

Get Tutorial