
In the Node parameters, pass the -inspect-brk flag to enable the Node inspector.Įxecute npx in your project directory to add AVA to your package.json. In the Application parameters pass the CLI flags you're using and the test files you would like to debug, for example -verbose test.js.


In the JavaScript file field specify the path to AVA in the project's node_modules folder: node_modules/.bin/ava on macOS and Linux or node_modules/.bin/ava.cmd on Windows. from the dropdown list on the top right, then click + and select Node.js. Setup using Node.jsĪdd a new Node.js Run/Debug configuration: select Edit Configurations.

Starting with version 2016.2, WebStorm and other JetBrains IDEs (IntelliJ IDEA Ultimate, PHPStorm, P圜harm Professional, and RubyMine with installed Node.js plugin) allow you to debug AVA tests. When you start WebStorm, you will have the option of choosing an empty project or a boilerplate setup for the most popular JavaScript libraries and frameworks such as Angular, Cordova, Express, Meteor, Node.js, React, React Native, and Vue.js.
