We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95f1bb4 commit 78c7b77Copy full SHA for 78c7b77
index.js
@@ -44,7 +44,8 @@ function createHarness (conf_) {
44
exitInterval = !exitInterval && conf_.exit !== false && canEmitExit
45
&& typeof process._getActiveHandles === 'function'
46
&& setInterval(function () {
47
- if (process._getActiveHandles().length === 1) {
+ if (/^v0\.8\./.test(process.version)
48
+ && process._getActiveHandles().length === 1) {
49
tests.forEach(function (t) { t._exit() });
50
}
51
}, 200);
@@ -124,7 +125,7 @@ function createHarness (conf_) {
124
125
pending.unshift.apply(pending, unshifts);
126
127
- nextTick(function () {
128
+ process.nextTick(function () {
129
running = false;
130
if (pending.length) return pending.shift()();
131
if (count === 0 && !closed) {
0 commit comments