23 Testing
Whoever says A doesn’t have to say B. He can also see that A was wrong. —Bertold Brecht
Automated testing is the key to a reliable application. Tests are primarily used to validate existing functionality. This allows you to ensure that you don’t affect any existing features as you continue to develop your application. In addition, unit tests also perform well when existing source code is refactored.
Unfortunately, applications are still far too rarely secured with tests. One reason is that the effort required to create tests is often unnecessarily high. For this reason, one of your goals should be to keep the effort required to test your application as low as possible. Node.js, or rather the Node.js community, supports you in this ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access