Currently Empty: £0.00
- Description
- Curriculum
- FAQ
- Reviews
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!
Setting up Environment
*** SOURCE CODE OF PROJECT ***
Basics of Unit Testing in Jest
Lets Unit Test Jobs API
Testing Jobs Resource
-
12Overview of Jobs API
-
13Job API Config file
-
14Mock Request & Mock Response
-
15Mock User Model & bcryptjs
-
16Unit Test Register User
-
17Jest restoreAllMocks
-
18Unit Test Register user Validation Error
-
19Unit Test Duplicate Email Error
-
20Unit Test Missing Login Email & Password
-
21Unit Test Invalid Email or Password for Login
-
22Unit Test Login User
Testing Middleware’s
Testing Models
Testing Utils
e2e Testing - Auth
e2e Testing - Jobs Resource
Jest Test Coverage
Test Driven Development (TDD)
[UPDATE] Unit Testing with TypeScript
Bonus Lecture - Basic of React Unit Testing
Congratulations ?
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
Stars 5
19
Stars 4
14
Stars 3
3
Stars 2
1
Stars 1
2




