Video description
Create successful test suites for frontend and backend JavaScript apps using the industry's best tools
About This Video
- Follow industry best practices when building test suites for your full-stack JavaScript applications
- Efficiently test your backend APIs, avoid common mistakes, and maximize test coverage
- Perform platform-agnostic frontend, backend, and end-to-end testing
In Detail
JavaScript brings vast amounts of freedom to both frontend and backend developers. However, that freedom comes at a cost: the need to continually screen your applications for bugs and possible optimizations. The presence of multiple testing frameworks such as Jasmine and Mocha confuses newcomers and experienced JavaScript devs when it comes to deciding which one is the best tool for the job.
In this course, you will delve into different aspects and specifics of JavaScript testing. You will enhance your skills by mastering many topics that have been a source of confusion in the past—such as integration testing, E2E testing, and Behavioral Driven Development. You will learn how to break down your code into systems that you can challenge individually in an isolated environment, thus catching bugs early before they reach production.
With the testing skills you've acquired, you will examine the most available testing frameworks and tools (including Jasmine, Mocha, Chai, and Jest) to find the one that suits you best. Having the right tool for the job will help you work with Test-Driven and Behavioral-Driven Development on all application layers.
Publisher resources
Table of contents
-
Chapter 1 : Best Practices of Unit Testing
- The Course Overview 00:02:59
- Write Great Test Names 00:05:00
- Single Responsibility Principle 00:05:10
- Covering All Test Cases 00:05:26
- Improving Your Tests with a Linter 00:03:34
- Handling and Expecting Errors 00:04:07
-
Chapter 2 : BDD Best Practices
- Red. Green. Refactor 00:11:38
- Describing User Behavior 00:02:08
- Testing Only the Public API 00:02:57
- Using Realistic Input 00:03:05
- Writing Plain Language Tests 00:07:27
-
Chapter 3 : Efficient Backend Testing
- Testing Middleware in Isolation 00:04:58
- Avoiding Testing Tested Code 00:10:29
- Using Static Code Analyzers 00:04:17
- Creating Realistic Mock Environments 00:03:18
- E2E Controller Testing with SuperTest 00:08:27
-
Chapter 4 : Efficient Frontend Testing
- Isolating and Testing Individual Components 00:06:57
- Mocking the API 00:04:58
- Testing the Frontend Efficiently 00:05:59
- Writing E2E Tests with NightmareJS 00:07:10
-
Chapter 5 : Other Types of Testing
- Defining Application Key Functionalities 00:06:52
- Smoke Testing Best Practices 00:04:01
- Spotting Regressions 00:02:53
- CI Best Practices 00:02:59
- Course Summary 00:04:30
Product information
- Title: JavaScript Testing Best Practices
- Author(s):
- Release date: November 2019
- Publisher(s): Packt Publishing
- ISBN: 9781838641344
You might also like
video
Algorithms: 24-part Lecture Series
Algorithms, Deluxe Edition, Fourth Edition These Algorithms Video Lectures cover the essential information that every serious …
book
Codeless Data Structures and Algorithms : Learn DSA Without Writing a Single Line of Code
In the era of self-taught developers and programmers, essential topics in the industry are frequently learned …
video
The Complete JavaScript Unit Testing Guide
Eliminate bugs and improve the quality of your JavaScript code. Reduce your development costs with unit …
book
Grokking Algorithms
Grokking Algorithms is a friendly take on this core computer science topic. In it, you'll learn …