☕️ Classic, reliable, trusted test framework for Node.js and the browser
use invoker
Craig Taub9b0547375cc5
diff --git a/test/integration/helpers.js b/test/integration/helpers.jsindex 774ffced..2870dd43 100644--- a/test/integration/helpers.js+++ b/test/integration/helpers.js@@ -72,6 +72,22 @@ module.exports = {},runMochaJSONRaw: function(fixturePath, args, fn) {var path;+<<<<<<< HEAD+=======++ path = resolveFixturePath(fixturePath);+ args = args || [];++ return invokeSubMocha(args.concat(['--reporter', 'json', path]), function(+ err,+ resRaw+ ) {+ if (err) return fn(err);++ fn(null, resRaw);+ });+ },+>>>>>>> 38bfa4e... use invokerpath = resolveFixturePath(fixturePath);args = args || [];diff --git a/test/integration/options.spec.js b/test/integration/options.spec.jsindex e3340a6c..e7136228 100644--- a/test/integration/options.spec.js+++ b/test/integration/options.spec.js@@ -5,7 +5,7 @@ var helpers = require('./helpers');var run = helpers.runMochaJSON;var runRaw = helpers.runMochaJSONRaw;var directInvoke = helpers.invokeMocha;-var directInvokeBlocking = helpers.invokeBlockingMocha;+// var directInvokeBlocking = helpers.invokeBlockingMocha;var resolvePath = helpers.resolveFixturePath;var args = [];@@ -523,14 +523,13 @@ describe('options', function() {}var expectedCloseCursor = '\u001b[?25h';- console.log('data', data);+ // console.log('data', data);expect(data.output, 'to contain', expectedCloseCursor);expect(data.code, 'to be', 130);done();});var t = setTimeout(function() {// kill the child process- console.log('TIMER SIGINT')mocha.kill('SIGINT');}, 500);});