We should keep the API documentation handy because it’s good!
It’s the package manager for Node! It might stand for Nuturing Palpable Magnificence, according to their site, but it also might stand for something else. [Like Node Package Manager.]
Find your executable project modules like this:
$ ls -a node_modules/.bin . .. jasmine
Starting a project
You can install jasmine with this command in your project directory:
npm install jasmine --save-dev
Using the example to get started
You should set up Jasmine as the test runner with
npx jasmine init
You can set up the example Jasmine project with
npx jasmine examples
Have a look at the files that were added to see what’s what.
We should update the "scripts/test" key in our package.json file to run Jasmine. We’ll put in
npx jasmine to do this as that is the command used to run the tests.
From here on out, we can run
npm test to run our testing framework!