Skip to content

Commit

Permalink
Pass flags for NAPI modules
Browse files Browse the repository at this point in the history
This change enables testing of NAPI modules[1]. This is achieved
by passing the appropriate flags to node inside the mocha executable.
  • Loading branch information
jupp0r authored and boneskull committed Jun 3, 2017
1 parent e00d27b commit c0b5990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/_mocha
Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions bin/mocha
Expand Up @@ -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:
Expand Down

0 comments on commit c0b5990

Please sign in to comment.