If you’re unfamiliar with Jasmine, Ragonha will give you a solid foundation of the testing framework by the end of the second chapter. Less than 40 pages in and you’ll understand Jasmine’s approach to testing, as well as how to stand up a basic test suite. His coverage of the core functions and the collection of built-in matchers is concise and accurate. He builds on this foundation by demonstrating Jasmine’s abilities in testing everything from asynchronous code3 to MVC components4 to AMD modules.5
Disclosure: I received an electronic copy of this book from the publisher in exchange for writing this review.
- Sinon.js FTW here. [↩]
- He rather sensibly chose Backbone.js for these example. [↩]
- Require.js being the AMD library-of-choice here. [↩]