karma startto kickstart Karma into setting up the testing environment, running through each unit test and executing any reporters we have set up in the karma.config.js configuration file. In order to run Karma through the command line it must be installed globally (
npm install karma -g).
scriptsfield holds an object with key-value pairing, where the key is the alias for the command and the value is the command to be executed.
npm testwill start Karma. Below is the output of our Karma test. As you can see we had one test that passed, running in a Chrome 48 browser.