Skip to content

Instantly share code, notes, and snippets.

@richardprior
richardprior / README.md
Last active August 29, 2015 13:56
Webstorm: Workaround to enable --harmony flag on node mocha tests

#Workaround to enable --harmony flag on node mocha tests

  1. Create a shell script which runs node with the harmony flag and passes along any other command line arguments sent to the shell script. Mark this script as executable (chmod +x). See 'node-wrapper' for an example bash script.
  2. Edit you Mocha 'Run/Debug Configuration' to use the wrapper script as the node interpreter.