Students Save 30%! Learn & create with unlimited courses & creative assets Students Save 30%! Save Now
by
Lessons:25Length:2.9 hours

2.4 Running Karma Tests

In this video, we’ll learn how to run our tests automatically using Karma and Node.js, without needing to open a browser.

Corrections

  • The command to install the Karma command line tools is given incorrectly. The correct command is
    npm install karma-cli --global.
  • In order to resolve the Can not load "mocha", it is not registered! error, Daniel suggests installing karma-mocha globally. This is not necessary: the problem is instead solved by installing the karma-mocha-reporter module with
    npm install --save-dev karma-mocha-reporter.

Related Links