nonobieBETA
Roadmap
GitHub

Node Express

Node.js & Express — Learning Roadmap01 — Node.js Runtime & Modules02 — File System & Path03 — Events & Streams04 — HTTP Module (No Framework)05 — Async Patterns & Error Handling06 — Express Setup & Basics07 — Middleware08 — Routing & Router09 — Request Handling10 — Response Patterns11 — REST API Design12 — Authentication & Authorization13 — Error Handling & Logging14 — Input Validation & Sanitization15 — Database Integration Patterns16 — Testing17 — Security Best Practices18 — Performance & Caching19 — WebSockets & Real-Time20 — Project Structure & Deployment
Docs
/
Node Express
Chapter 16

16 — Testing

Core Concepts

  • Vitest — fast test runner, Jest-compatible API
  • supertest — HTTP assertion library for Express apps
  • Unit tests — test individual functions/modules in isolation
  • Integration tests — test routes with real middleware pipeline
  • Mocking — replace dependencies with controlled implementations
  • Test fixtures — reusable test data factories
15 — Database Integration Patterns17 — Security Best Practices