Skip to content

irnc/debug-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debug-tests

Bare bones setup to debug tests

How to debug tests in WebStorm?

Add $NODE_DEBUG_OPTION to script you want to debug, so package.json has a following section:

{
  "scripts": {
    "test": "mocha $NODE_DEBUG_OPTION"
  }
}
  1. Open Run > Edit Configurations... dialog.
  2. Add New Configuration (Alt+Insert), a green plus button at top-left.
  3. Select npm.
  4. Name is whatever, e.g. test.
  5. For Scripts select test.
  6. Click OK.
  7. Debug this configuration using a bug icon at top-right corner of the main window.

About

Bare bones setup to debug tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published