Karma

Karma makes unit testing instantaneous and simple for developers, as it does not have any heavy configurations or load any external dependencies. In addition, it gives more control to the developer with support for the testing of real devices, remote workflow tests, debugging, and continuous integration support.

We can install Karma in our project using the following command:

npm install karma --save-dev

We can also install Karma along with the Jasmine unit test support using the following command:

npm install karma-jasmine karma-chrome-launcher jasmine-core --save-dev

We can also install the command-line interface if we want to avoid starting the program with the node modules command. We use the following install command:

npm install ...

Get Oracle JET for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.