Search code examples
mocha.jswebstorm

WebStorm default settings, environment variables are not getting copied


My understanding is that under default settings for Mocha in WebStorm and any environment variables should be copied to other Mocha tests that I create but they are not.

See the image.

enter image description here

enter image description here


Solution

  • Correct -- that's exactly how it works.

    The only note: such copying only occurs when you create new Run/Debug configuration of that type (Mocha in your case). Editing Default entry does not affect already created entries (of that type) in any way.