Wrapping Up

This chapter pulled together lessons from prior chapters. We created a practical example to get a good feel for how to test drive a fully working Node.js app—from strategic design to fine-grained tactical design and implementation.

We saw that writing tests is an act of applying good design principles. The result is concise, modular, cohesive, and well-maintainable code. We also explored when and how to spike and the benefits of the insights it gives, especially when it’s not clear how to proceed with tests. You can now apply the techniques explored in this chapter to write automated tests for back-end services. Realistically, though, writing full-fledged web apps on Node.js to support multiple routes or endpoints is tedious. ...

Get Test-Driving JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.