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
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.
Take this course offline
Subscribe to my newsletter to get every free book and course in PDF and EPUB format.
Get the downloadsCourse 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.