23.3 Jasmine
Numerous unit test frameworks are available for client-side JavaScript. The test frameworks can be roughly divided into two categories: (1) frameworks tightly bound to a JavaScript library or framework, and (2) independent testing frameworks that allow you to test applications independently of the library you use. Jasmine represents this second category. The good news is that Jasmine is also available natively for Node.js, so you can use the framework directly without wrapper libraries.
Jasmine isn’t a typical unit test framework, instead it follows the approach of behavior-driven development (BDD). The core idea of BDD is that not only developers can formulate tests but also other people who aren’t directly involved in the development, ...
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