Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
Lessons:25Length:2.9 hours
  • Overview
  • Transcript

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.


  • 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