Skip to content

Commit 3a4a0eb

Browse files
MoLowmarco-ippolito
authored andcommitted
test_runner,doc: align documentation with actual stdout/stderr behavior
PR-URL: #53131 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 560392d commit 3a4a0eb

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

doc/api/test.md

-8
Original file line numberDiff line numberDiff line change
@@ -2724,11 +2724,7 @@ The corresponding execution ordered event is `'test:dequeue'`.
27242724
### Event: `'test:stderr'`
27252725

27262726
* `data` {Object}
2727-
* `column` {number|undefined} The column number where the test is defined, or
2728-
`undefined` if the test was run through the REPL.
27292727
* `file` {string} The path of the test file.
2730-
* `line` {number|undefined} The line number where the test is defined, or
2731-
`undefined` if the test was run through the REPL.
27322728
* `message` {string} The message written to `stderr`.
27332729

27342730
Emitted when a running test writes to `stderr`.
@@ -2739,11 +2735,7 @@ defined.
27392735
### Event: `'test:stdout'`
27402736

27412737
* `data` {Object}
2742-
* `column` {number|undefined} The column number where the test is defined, or
2743-
`undefined` if the test was run through the REPL.
27442738
* `file` {string} The path of the test file.
2745-
* `line` {number|undefined} The line number where the test is defined, or
2746-
`undefined` if the test was run through the REPL.
27472739
* `message` {string} The message written to `stdout`.
27482740

27492741
Emitted when a running test writes to `stdout`.

lib/internal/test_runner/tests_stream.js

-8
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,6 @@ class TestsStream extends Readable {
123123
});
124124
}
125125

126-
stderr(loc, message) {
127-
this[kEmitMessage]('test:stderr', { __proto__: null, message, ...loc });
128-
}
129-
130-
stdout(loc, message) {
131-
this[kEmitMessage]('test:stdout', { __proto__: null, message, ...loc });
132-
}
133-
134126
coverage(nesting, loc, summary) {
135127
this[kEmitMessage]('test:coverage', {
136128
__proto__: null,

0 commit comments

Comments
 (0)