What You’ll Learn in This Hour:
• Why testing is important
• Testing with the assert module
• Testing with the Nodeunit module
• Testing with the Vows module
• Testing with the Mocha module
In the last hour, you learned about how to debug Node.js applications, and you may be asking why you need to write tests for your application with such powerful debugging tools. Writing tests for applications is something that many developers do not do. This can work if the codebase is small and there is only one developer on the project. But, as applications change and become more complex, it is increasingly difficult to ensure of the stability of code. Tests are repeatable pieces of code that assert that ...