O'Reilly logo

Node.js Recipes: A Problem-Solution Approach by Cory Gackenheimer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 11

image

Testing in Node.js

Testing allows you the peace of mind to know that the code you wrote is actually performing the operations that it was intended to do. Node.js offers a native implementation for writing some form of unit tests, and the Node.js community has created several robust libraries to aid you in your test-driven development process.

In this chapter you will investigate how to decide on a testing framework for your Node.js application, and you will also see a variety of techniques and testing mechanisms that you can use to create a fully tested application. Once you have built the tests that you need for your Node.js application, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required