23.7 Summary
This chapter has dealt with testing Node.js applications. You can achieve a basic validation of your source code by using the unit tests presented here. They represent the first stage of testing at the function level and validate the smallest components of an application. If you combine several functions or entire workflows, this is commonly referred to as integration testing. Integration tests differ both in the scope of functionality covered in a test and in the runtime. Integration tests usually have a longer runtime.
With Jasmine and Jest, you got to know two test frameworks for Node.js. But there are also numerous other implementations available, such as Mocha, for example. This framework is similar to Jasmine, with the ...
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