Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.33 KB

File metadata and controls

36 lines (22 loc) · 1.33 KB

Development Setup

In order to do development you will need to enable Babel in your dev environment,

JetBrains (IntelliJ etc.)

Read this article and be sure to enable Node.js plugin for the project:

nodejs

To create a Mocha run configuration:

  • Open the Run/Debug Configuration dialog box (Run|Edit Configurations on the main menu).
  • Click the + on the toolbar and select Mocha from the list.
    • The Run/Debug Configuration: Mocha dialog box opens.

add-mocha

  • Enable Babel for the test run by putting --compilers js:babel-core/register in the Extra Mocha options field.

enable-babel

  • Specify the Node interpreter to use and the location of the mocha package.
  • Specify the tests to run. This can be a specific test or suite, an entire test file, or a folder with test files. You can also define patterns to run only the tests from the matching files.

After creating the Run config you should see it in the run tool on the toolbar:

run-tool

After clicking the Run (or Debug) button, you will see the results in the Run tool window:

run-results