Backend with Node.js
🧪 Testing and advanced Node
Test the backend (unit, integration, mocks, TDD), master the event loop and streams, and scale Node without blocking the thread.
What you'll learn
- Write unit tests with mocks/spies and HTTP integration tests with Supertest
- Apply the TDD cycle (red-green-refactor)
- Predict the event loop order between microtasks and macrotasks
- Process large files with streams and scale with clustering or
worker_threadswithout blocking the thread
Lessons
Backend testingUnit vs integration, test doubles (mocks), supertest and TDD. Advanced asynchrony and streamsThe event loop in depth, microtasks vs timers, streams, backpressure and Buffer. Performance and scalingCaching with Redis, clustering, worker_threads and not blocking the event loop.Practice this module in the app
DevPath is a hands-on course: you read the theory here; in the app you put it into practice with exercises that really run, offline.
Start free in the app →