Skip to content

Commit 2323c3b

Browse files
committed
Merge tag 'v11.1.1'
11.1.1
2 parents 1699eb9 + 95faf6c commit 2323c3b

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

lib/spawn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class Spawn extends Base {
109109
this.options.signal = signal
110110

111111
// spawn closing with no tests is treated as a skip.
112-
if (this.results.plan && this.results.plan.skipAll && !code && !signal)
112+
if (this.results && this.results.plan && this.results.plan.skipAll && !code && !signal)
113113
this.options.skip = this.results.plan.skipReason || true
114114

115115
if (code || signal) {

lib/tap.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const _didPipe = Symbol('_didPipe')
99

1010
const monkeypatchEpipe = () => {
1111
const emit = process.stdout.emit
12-
process.stdout.emit = (ev, er) => {
12+
process.stdout.emit = function (ev, er) {
1313
if (ev !== 'error' || er.code !== 'EPIPE')
14-
return emit.apply(process, arguments)
14+
return emit.apply(process.stdout, arguments)
1515
}
1616
}
1717

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tap",
3-
"version": "11.1.0",
3+
"version": "11.1.1",
44
"author": "Isaac Z. Schlueter <[email protected]> (http://blog.izs.me)",
55
"description": "A Test-Anything-Protocol library",
66
"homepage": "http://node-tap.org/",

test/regression-many-asserts-epipe.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict'
2+
// See https://github.com/tapjs/node-tap/issues/422
3+
const t = require('../')
4+
t.test('just a lot of asserts in rapid succession', t => {
5+
for (let i = 0; i < 5000; i++) {
6+
t.pass('a number is ' + i)
7+
}
8+
t.end()
9+
})

0 commit comments

Comments
 (0)