O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installation and configuration

We will use the NPM tool to install Jasmine. Open your favorite Terminal and execute the following command:

$ npm install jasmine --global

The preceding instruction will install Jasmine as an executable program that you can invoke in any folder in your Terminal. We achieve this using the --global flag in the npm install command.

Once Jasmine is installed, we need to create our project example skeleton to practice with Jasmine. For this, we need to do the following:

  1. Create a new folder called practice-jasmine
  2. Initialize a new Jasmine project by executing the jasmine init command
  3. Write our test script

So, having the steps clear, open your Terminal and execute the following commands:

$ mkdir practice-jasmine ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required