Although we can run
Install Karma Plugin in IntelliJ
The first step is to install the Karma plugin created by JetBrains.
Create Karma “Run” Configuration
From the drop down list on top right of IntelliJ, select Edit Configurations….
In Run/Debug Configuration dialog, select + and then select Karma.
Enter a name, in this example, we call it Karma.
Use the drop down list to select a configuration file called karma.conf.js.
The Node interpreter and Karma package should already be defined, otherwise, use the drop down lists to select the right values.
On top right of IntelliJ, select the green Play button to run Karma test runner.
There are few things we can configure here:-
- Button 2 – When unselected, all passed tests are displayed.
- Button 3 – When selected, all tests are expanded.