From e2f2537732b15d6dad4a0bac40b5c53e9d1b43ea Mon Sep 17 00:00:00 2001 From: Moshe Atlow Date: Fri, 24 May 2024 08:50:00 +0300 Subject: [PATCH] test_runner,doc: align documentation with actual stdout/stderr behavior --- doc/api/test.md | 8 -------- lib/internal/test_runner/tests_stream.js | 8 -------- 2 files changed, 16 deletions(-) diff --git a/doc/api/test.md b/doc/api/test.md index 3c68924ac4e78c..d3bd1399a1adc4 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -2862,11 +2862,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`. @@ -2877,11 +2873,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`. diff --git a/lib/internal/test_runner/tests_stream.js b/lib/internal/test_runner/tests_stream.js index 83b2a903218df1..08d4397ae64a3c 100644 --- a/lib/internal/test_runner/tests_stream.js +++ b/lib/internal/test_runner/tests_stream.js @@ -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,