Skip to Content
Node Cookbook - Fourth Edition
book

Node Cookbook - Fourth Edition

by Bethany Griggs
November 2020
Intermediate to advanced
512 pages
8h 58m
English
Packt Publishing
Content preview from Node Cookbook - Fourth Edition

Chapter 8: Testing with Node.js

Testing enables you to identify bugs in your code more quickly and efficiently. Test cases should be written to verify that each piece of code is yielding the expected output or results. Tests can act as a form of documentation for the logic of your program.

Unit testing is a specific type of testing where individual components or units of code are tested. Small unit tests provide a granular specification for your program to test against. Ensuring your code base is covered by unit tests aids the development, debugging, and refactoring process by providing a baseline measure of quality that you can work off of. Having a comprehensive test suite can lead to identifying bugs sooner, which can save time and money ...

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.
Start your free trial

You might also like

Mastering Node.js 12.x

Mastering Node.js 12.x

Dimitiris Loukas
Node Cookbook - Third Edition

Node Cookbook - Third Edition

Matteo Collina, David Mark Clements, Peter Elger, Mathias Buus Madsen
Node.js: Tools & Skills, 2nd Edition

Node.js: Tools & Skills, 2nd Edition

James Hibbard, Michael Wanyoike, Nilson Jacques, Jay Raj, Manjunath M
Your First Week With Node.js, 2nd Edition

Your First Week With Node.js, 2nd Edition

James Hibbard, Craig Buckler, Mark Brown, Nilson Jacques, James Kolce, Paul Orac, M. David Green, Florian Rappl

Publisher Resources

ISBN: 9781838558758Supplemental Content