Unit testing with Jasmine

First things first, we will need to install Jasmine. I can recommend going through this chapter to get started with Jasmine. After that, check out the documentation on the website, https://jasmine.github.io/. Jasmine is pretty extensive, but the documentation is pretty spot on. Now, open up a command prompt and browse to your project folder. Once there, we can install Jasmine through npm. Like with Angular.js and Bootstrap, we want to save Jasmine to our package.json file, but this time, as a developer dependency. A regular dependency such as Angular.js and Bootstrap, is necessary to run the code. A developer dependency is only interesting for developers who want to make a build of the software. In other words, software ...

Get Continuous Integration, Delivery, and Deployment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.