You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or a nice-to-have?? Please describe.
I have a launch config in neovim which runs npm test. I'd like a mechanism to pass --inspect-brk to mocha. Setting NODE_OPTIONS=--inspect-brk isn't an option because it affects all tools that are executed by the test script.
Describe the solution you'd like
A MOCHA_OPTIONS environment variable variable similar to NODE_OPTIONS.
Is your feature request related to a problem or a nice-to-have?? Please describe.
I have a launch config in neovim which runs
npm test
. I'd like a mechanism to pass--inspect-brk
to mocha. SettingNODE_OPTIONS=--inspect-brk
isn't an option because it affects all tools that are executed by thetest
script.Describe the solution you'd like
A
MOCHA_OPTIONS
environment variable variable similar to NODE_OPTIONS.Describe alternatives you've considered
Yargs has support for env variables: https://yargs.js.org/docs/#api-reference-envprefix
However, using this feature would result in a separate env variable for each option:
Ex:
MOCHA_BAIL
MOCHA_ALLOW_UNCAUGHT
MOCHA_FAIL_ZERO
The text was updated successfully, but these errors were encountered: