From 820aa550a4239cc300ca1dd0a5175a6331d27620 Mon Sep 17 00:00:00 2001 From: Moshe Atlow Date: Wed, 14 Jun 2023 15:41:27 +0300 Subject: [PATCH] doc: refine when file is undefined in test events PR-URL: https://github.com/nodejs/node/pull/48451 Reviewed-By: Luigi Pinca Reviewed-By: Benjamin Gruenbaum Reviewed-By: Mohammed Keyvanzadeh --- doc/api/test.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/api/test.md b/doc/api/test.md index 23f63ba044acbd..4f408988486c38 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -1398,7 +1398,7 @@ Emitted when code coverage is enabled and all tests have completed. * `data` {Object} * `file` {string|undefined} The path of the test file, - undefined if test is not ran through a file. + `undefined` if test was run through the REPL. * `name` {string} The test name. * `nesting` {number} The nesting level of the test. @@ -1408,7 +1408,7 @@ Emitted when a test is dequeued, right before it is executed. * `data` {Object} * `file` {string|undefined} The path of the test file, - undefined if test is not ran through a file. + `undefined` if test was run through the REPL. * `message` {string} The diagnostic message. * `nesting` {number} The nesting level of the test. @@ -1418,7 +1418,7 @@ Emitted when [`context.diagnostic`][] is called. * `data` {Object} * `file` {string|undefined} The path of the test file, - undefined if test is not ran through a file. + `undefined` if test was run through the REPL. * `name` {string} The test name. * `nesting` {number} The nesting level of the test. @@ -1431,7 +1431,7 @@ Emitted when a test is enqueued for execution. * `duration` {number} The duration of the test in milliseconds. * `error` {Error} The error thrown by the test. * `file` {string|undefined} The path of the test file, - undefined if test is not ran through a file. + `undefined` if test was run through the REPL. * `name` {string} The test name. * `nesting` {number} The nesting level of the test. * `testNumber` {number} The ordinal number of the test. @@ -1446,7 +1446,7 @@ Emitted when a test fails. * `details` {Object} Additional execution metadata. * `duration` {number} The duration of the test in milliseconds. * `file` {string|undefined} The path of the test file, - undefined if test is not ran through a file. + `undefined` if test was run through the REPL. * `name` {string} The test name. * `nesting` {number} The nesting level of the test. * `testNumber` {number} The ordinal number of the test. @@ -1459,7 +1459,7 @@ Emitted when a test passes. * `data` {Object} * `file` {string|undefined} The path of the test file, - undefined if test is not ran through a file. + `undefined` if test was run through the REPL. * `nesting` {number} The nesting level of the test. * `count` {number} The number of subtests that have ran. @@ -1469,7 +1469,7 @@ Emitted when all subtests have completed for a given test. * `data` {Object} * `file` {string|undefined} The path of the test file, - undefined if test is not ran through a file. + `undefined` if test was run through the REPL. * `name` {string} The test name. * `nesting` {number} The nesting level of the test.