Testing Node.js Applications
Testing Node.js Applications Book Cover
The book is available on the following platforms: Amazon, Google, Apple, Leanpub and Gumroad
The content of the book at glance:
- Objectives — Why, What and How to test
- Setup — Making testing environment suitable for work
- Workflow — Automation Tools for productivity
- Project Layout — Conventions for
nodejs
Projects - Modularization — Transitioning to small modules
- Servers — Strategies to test
nodejs
servers. - Routes — Testing Authenticated REST endpoints
- Configuration — Tuning depending on environment
- Middleware — Testing Middleware in isolation
- Controllers — Testing Route Controller in isolation
- Utility Libraries — Starting from a blank slate
- Async – Callback — Strategies Mock Callback Functions
- Async – Promises — Strategies to Mock Promise
- Async – Streams — Strategies to Mock Streams
- Models — Testing Models without hitting the database
- Services — The need for a Service Layer
- WebSocket — Strategies to Mock WebSocket Server
- Background Jobs — Mocking long running tasks
- Addendum — Maintaining
nodejs
at scale - References — and reading list
I hope you will find this Book Useful.