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 cannot run without the dependencies, but it can run perfectly fine without the developer dependencies. That said, developer dependencies are not less important to the development process. Our website does not need Jasmine to run, but we definitely...