mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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:
parent
a2446de50f
commit
4796e05cc8
@ -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`.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user