Published 8/2022
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz
Language: English | Size: 1.51 GB | Duration: 3h 45m
You will learn to build rest api using node js and express js, how to add unit testing for rest api using mocha and chai
What you’ll learn
How to use mocha and chai to test API endpoint
How to build Rest API Using Node Js and Express Js
Node JS API Unit Testing
How to test API in postman
How to use mongodb database with node js
How to generate test report
Requirements
Students don’t need to have any prior knowledge to take this course
Description
Welcome to this course. In this course, you will learn API Unit Testing using mocha and chai. At first, you will learn how to build the rest API using node js, express js, and MongoDB. You will learn how to test the API endpoint in postman. I will show you how to organize and save the endpoint in postman. Using postman we will be able to perform all sorts of things like create, update, get, and delete operations.After that, you will learn how to add unit testing for the API using mocha and chai. We will add different sorts of testing for all of our API endpoints.Here are some lists that you are gonna learn from this course:How to build rest API.API End-point unit testing using mocha and chai.How to save data to MongoDB database.How to organize node js project, routing, and controller of node js app.How to use postman to test API endpoint.How to add Mocha Chai test for each and every API endpoint.How to use different kinds of assertion functions of chai in the test.How to generate a test report after doing all the testDifferent kinds of status codes need to use with mocha chai testing.How to choose status code when building rest API.How to use Axios to do HTTP requests.
Overview
Section 1: Introduction
Lecture 1 Introduction
Section 2: Create Project and Install Packages
Lecture 2 Create Project and Install Packages Part-1
Section 3: Create Router and Controller File
Lecture 3 Create Router and Controller File Part-2
Section 4: MongoDB Database Connection
Lecture 4 MongoDB Database Connection Part-3
Section 5: Design MongoDB Schema
Lecture 5 Design MongoDB Schema Part-4
Section 6: Create User API Endpoint
Lecture 6 Create User API Endpoint Part-5
Section 7: API Fields Validation
Lecture 7 API Fields Validation Part-6
Section 8: Get all User List API Endpoint
Lecture 8 Get all User List API Endpoint Part-7
Section 9: Get Single User API End-Point
Lecture 9 Get Single User API Endpoint Part-8
Section 10: Delete User API Endpoint
Lecture 10 Delete User API Endpoint Part-9
Section 11: Update User-Info API End-Point
Lecture 11 Update User-Info API Endpoint Part-10
Section 12: Install Mocha-Chai and Add First Test
Lecture 12 Install Mocha-Chai and Add First Test Part-11
Section 13: Add Test Case to Check Get User List API Endpoint
Lecture 13 Add Test Case to Check Get User List API Endpoint Part-12
Section 14: Test Case to Check Single User API Endpoint
Lecture 14 Test Case to Check Single User API Endpoint Part-13
Section 15: Delete User API Endpoint Test
Lecture 15 Delete User API Endpoint Test Part-14
Section 16: Create User API Endpoint Test Case
Lecture 16 Create User API Endpoint Test Case Part-15
Section 17: Update User API Endpoint Test Case
Lecture 17 Update User API Endpoint Test Case Part-16
Section 18: Fix Some Bugs
Lecture 18 Fix Some Bugs Part-17
Section 19: Generate Mocha Chai Test Report
Lecture 19 Generate Mocha Chai Test Report Part-18
If you are a backend developer and want to learn unit-testing,If you want to learn how to use mocha and chai to test your api,If you want to learn backend development and want to use mongodb with node js and express js
Password/解压密码www.tbtos.com
转载请注明:0daytown » Node Js Api Unit Testing -Using Mocha Chai -Complete Project