Skip to content

Commit e82d2eb

Browse files
MoLoweliiphaz
authored andcommitted
test_runner,doc: align documentation with actual stdout/stderr behavior
PR-URL: nodejs#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 91fde01 commit e82d2eb

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
@@ -2867,11 +2867,7 @@ The corresponding execution ordered event is `'test:dequeue'`.
28672867
### Event: `'test:stderr'`
28682868

28692869
* `data` {Object}
2870-
* `column` {number|undefined} The column number where the test is defined, or
2871-
`undefined` if the test was run through the REPL.
28722870
* `file` {string} The path of the test file.
2873-
* `line` {number|undefined} The line number where the test is defined, or
2874-
`undefined` if the test was run through the REPL.
28752871
* `message` {string} The message written to `stderr`.
28762872

28772873
Emitted when a running test writes to `stderr`.
@@ -2882,11 +2878,7 @@ defined.
28822878
### Event: `'test:stdout'`
28832879

28842880
* `data` {Object}
2885-
* `column` {number|undefined} The column number where the test is defined, or
2886-
`undefined` if the test was run through the REPL.
28872881
* `file` {string} The path of the test file.
2888-
* `line` {number|undefined} The line number where the test is defined, or
2889-
`undefined` if the test was run through the REPL.
28902882
* `message` {string} The message written to `stdout`.
28912883

28922884
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)