WebStorm offers a useful feature that adds a small arrow next to describe()
and it()
keywords when writing tests with Mocha, allowing for easy manual execution.
However, there is a challenge: I require additional setup before each test, leading me to use custom methods like setupNewSuite
and createNewTest
. Unfortunately, due to these name changes, WebStorm no longer displays the arrows next to them.
I am seeking a way for WebStorm to recognize setupNewSuite
as equivalent to describe
and createNewTest
as equivalent to it
.
(On another note, if it is possible to trick WebStorm by using the original names, I will consider dropping this request.)