Free course
Testing JavaScript Applications
Test JavaScript from pure functions to APIs, databases, browsers, CI, and small load checks with Node.js, Testcontainers, Playwright, and k6.
Prerequisites: JavaScript, Node.js and Web APIs
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it. Join my free newsletter and you get this course plus every other book and course I published.
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it.
Your progress
of lessons completed.
Course completed.
What you'll learn
Build a fast, isolated, diagnosable test strategy for the Books application across unit, integration, browser, and reliability boundaries.
Course contents
Testing foundations
Choose evidence from risk, use the Node test runner, and make tests clear and deterministic.
Unit tests
Test pure domain logic, boundaries, injected dependencies, and focused test doubles.
Integration tests
Test the HTTP stack, real schemas, migrations, SQLite, and disposable PostgreSQL.
Browser tests
Exercise user journeys with Playwright locators, web-first assertions, and traces.
Reliability and CI
Use coverage, CI stages, k6 thresholds, and a maintainable test ownership model.