Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Pass flags for NAPI modules

Jupp Müllerc0b5990e68c3
diff --git a/bin/_mocha b/bin/_mocha
index 7f3d01aa..e47d0bd8 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -99,6 +99,7 @@ program
.option('--no-warnings', 'silence all node process warnings')
.option('--opts <path>', 'specify opts path', 'test/mocha.opts')
.option('--perf-basic-prof', 'enable perf linux profiler (basic support)')
+ .option('--napi-modules', 'enable experimental NAPI modules')
.option('--prof', 'log statistical profiling information')
.option('--log-timer-events', 'Time events including external callbacks')
.option('--recursive', 'include sub directories')
diff --git a/bin/mocha b/bin/mocha
index 8ba64a0a..d632fbc3 100755
--- a/bin/mocha
+++ b/bin/mocha
@@ -48,6 +48,7 @@ process.argv.slice(2).forEach(function (arg) {
case '--use_strict':
case '--allow-natives-syntax':
case '--perf-basic-prof':
+ case '--napi-modules':
args.unshift(arg);
break;
default: