Skip to content

Commit c249289

Browse files
MoLowtargos
authored andcommitted
test_runner,doc: align documentation with actual stdout/stderr behavior
PR-URL: #53131 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 67a766f commit c249289

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

doc/api/test.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,11 +2854,7 @@ The corresponding execution ordered event is `'test:dequeue'`.
28542854
### Event: `'test:stderr'`
28552855

28562856
* `data` {Object}
2857-
* `column` {number|undefined} The column number where the test is defined, or
2858-
`undefined` if the test was run through the REPL.
28592857
* `file` {string} The path of the test file.
2860-
* `line` {number|undefined} The line number where the test is defined, or
2861-
`undefined` if the test was run through the REPL.
28622858
* `message` {string} The message written to `stderr`.
28632859

28642860
Emitted when a running test writes to `stderr`.
@@ -2869,11 +2865,7 @@ defined.
28692865
### Event: `'test:stdout'`
28702866

28712867
* `data` {Object}
2872-
* `column` {number|undefined} The column number where the test is defined, or
2873-
`undefined` if the test was run through the REPL.
28742868
* `file` {string} The path of the test file.
2875-
* `line` {number|undefined} The line number where the test is defined, or
2876-
`undefined` if the test was run through the REPL.
28772869
* `message` {string} The message written to `stdout`.
28782870

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

lib/internal/test_runner/tests_stream.js

Lines changed: 0 additions & 8 deletions
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)