Learning End-to-End Testing with Jest

Learning End-to-End Testing with Jest

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 1h 51m | 446 MB

Testing small parts of an application is fairly easy, but as you assemble systems, the test complexity often grows with the number of interconnected systems. Sometimes, rather than testing just the parts, you want to test the whole process, as one large set. In this course, Chinyelu Ibute shows you how the JavaScript testing framework, Jest, lets you create comprehensive tests so you can verify the functionality of your entire application. Chinyelu starts with the basics of the test-driven development, including the different types. She then shows how to write an end-to-end test for a RESTful web-service application built with Node.js and MongoDB using Jest. Finally, she explains how to test the application workflow from beginning to end, with a high code coverage.

Table of Contents

Introduction
1 Create comprehensive end-to-end tests with Jest
2 Prerequisites and learning objectives
3 Exercise files

1. End-to-End Test Basics
4 Introduction to test-driven development (TDD)
5 Fundamentals of unit tests
6 Overview of integration tests
7 Basics of end-to-end tests

2. Project Setup Recipe App
8 Template Node.jsExpress project setup
9 Testing endpoints on Postman
10 Introduction to Jest
11 Jest setup

3. End-to-End Test with Jest
12 Test the Login endpoint
13 Finish up on Login endpoint test
14 Test the Create endpoint
15 Finish up on Create endpoint test
16 Test the Read endpoint
17 Test the Update endpoint
18 Finish up on Update endpoint test
19 Test the Delete endpoint

4. Test Coverage
20 Test error handling
21 Finish up on test error handling
22 Run test automatically

Conclusion
23 Next steps

Homepage