test_runner,doc: align documentation with actual stdout/stderr behavior

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Moshe Atlow 2024-05-28 22:44:16 +03:00 committed by GitHub
parent a2446de50f
commit 4796e05cc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 16 deletions

View File

@ -2864,11 +2864,7 @@ The corresponding execution ordered event is `'test:dequeue'`.
### Event: `'test:stderr'`
* `data` {Object}
* `column` {number|undefined} The column number where the test is defined, or
`undefined` if the test was run through the REPL.
* `file` {string} The path of the test file.
* `line` {number|undefined} The line number where the test is defined, or
`undefined` if the test was run through the REPL.
* `message` {string} The message written to `stderr`.
Emitted when a running test writes to `stderr`.
@ -2879,11 +2875,7 @@ defined.
### Event: `'test:stdout'`
* `data` {Object}
* `column` {number|undefined} The column number where the test is defined, or
`undefined` if the test was run through the REPL.
* `file` {string} The path of the test file.
* `line` {number|undefined} The line number where the test is defined, or
`undefined` if the test was run through the REPL.
* `message` {string} The message written to `stdout`.
Emitted when a running test writes to `stdout`.

View File

@ -123,14 +123,6 @@ class TestsStream extends Readable {
});
}
stderr(loc, message) {
this[kEmitMessage]('test:stderr', { __proto__: null, message, ...loc });
}
stdout(loc, message) {
this[kEmitMessage]('test:stdout', { __proto__: null, message, ...loc });
}
coverage(nesting, loc, summary) {
this[kEmitMessage]('test:coverage', {
__proto__: null,