☕️ Classic, reliable, trusted test framework for Node.js and the browser
use exit.fixture
Craig Taubcb0cc1b019e6
diff --git a/test/integration/fixtures/mocha-process-hanging.fixture.js b/test/integration/fixtures/mocha-process-hanging.fixture.jsindex 5df91987..324374a2 100644--- a/test/integration/fixtures/mocha-process-hanging.fixture.js+++ b/test/integration/fixtures/mocha-process-hanging.fixture.js@@ -3,7 +3,4 @@require('../../../bin/_mocha');process.stdout.on('data', function(data) {});-describe('hanging process', function() {- it('test should pass', function () {- });-});+describe('hanging process', function() {});diff --git a/test/integration/helpers.js b/test/integration/helpers.jsindex 3b2e8263..774ffced 100644--- a/test/integration/helpers.js+++ b/test/integration/helpers.js@@ -133,19 +133,6 @@ function invokeSubMocha(args, fn, cwd) {return _spawnMochaWithListeners(args, fn, cwd);}-function invokeBlockingMocha(args, fn, cwd) {- args = [- path.join(- __dirname,- '../..',- 'test/integration/fixtures',- 'mocha-process-hanging.fixture.js'- )- ].concat(args);-- return _spawnMochaWithListeners(args, fn, cwd);-}-function _spawnMochaWithListeners(args, fn, cwd) {var output = '';var mocha = spawn(process.execPath, args, {cwd: cwd});diff --git a/test/integration/options.spec.js b/test/integration/options.spec.jsindex e7136228..50786999 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 = [];