Course “JS: Automated testing”
Course updated on April 29, 2025
Access this and all courses with a subscription
What's included
Description
The market-leading programming processes includes automated testing as a key component. The only trustworthy method for verifying that the code is functional is through tests. They do not eliminate bugs, but they do enable you to maintain a manageable amount of them. Tests provide assurance that changes made to one component of the system would not harm other parts.
This course looks at both general test writing principles and contemporary JavaScript testing tools.
You will learn
- Writing better code with fewer bugs than code without tests
- Build the architecture of your code better based on how it will be used
- Write code faster due to automated result check
- Perform code refactoring more often, ridding it of legacy, thanks to the guarantees that tests give
Syllabus
1 | Introduction Course overview |
2 | How and why to write tests? Understand what tests are supposed to do and what they look like |
3 | Assertions Learn about the assert module and its basic functions for performing checks |
4 | power-assert Learn about a library that dramatically simplifies the analysis of statement output |
5 | Jest Discover the most popular framework for testing in JavaScript |
6 | Matchers (expect) Learn the Jest matchers |
7 | Unit Tests Go all the way through writing tests using the example of stack testing |
8 | Data preparation Learn about the beforeEach hook that runs before each test |
9 | Bad and good testing practices Learn about common test writing mistakes |
10 | Code Coverage Learn how to find code with no test coverage |
11 | Test-Driven Development (TDD) Learn more about writing tests before start coding |
12 | Continuous Integration (CI) Learn how to build a project automatically |
Recommended programs

- Run code right in the browser
- Lifetime access
- Learn at your own pace
Access this and all courses with a subscription

