Skip to content

Commit

Permalink
Whitelist --experimental-modules Node flag
Browse files Browse the repository at this point in the history
This commit adds `--experimental-modules` to the list of Node flag recognized by Mocha. It allows to use `mocha --experimental-modules foo.spec.js` instead of requiring the workaround `NODE_options="--experimental-modules" mocha foo.spec.js`.

See <#3006 (comment)>
  • Loading branch information
demurgos authored and Bamieh committed Jul 31, 2018
1 parent 7941c9e commit f745651
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/mocha
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ process.argv.slice(2).forEach(arg => {
break;
case '--gc-global':
case '--es_staging':
case '--experimental-modules':
case '--no-deprecation':
case '--no-warnings':
case '--prof':
Expand Down

0 comments on commit f745651

Please sign in to comment.