IntelliJ IDEA 2017.1 Help

Debugging JavaScript Unit Tests

This feature is supported in the Ultimate edition only.

Besides simply executing unit tests on the JSTestDriver or Karma without the ability to analyze the problems that arise, IntelliJ IDEA provides the ability to debug unit tests just like JavaScript source code.