PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Mocha

Last modified: 09 August 2022

Required plugins: JavaScript and TypeScript, Node .js

Node.js - Install the plugin on the Settings/Preferences | Plugins page, tab Marketplace.

The plugins are bundled with PhpStorm and enabled by default.

Mocha is a JavaScript test framework that is especially helpful for executing asynchronous test scenarios. You can run Mocha tests from outside PhpStorm, examine test results arranged in a treeview, and easily navigate to the test source from there. Next to the test, in the editor, PhpStorm shows the status of the test with an option to quickly run or debug it.