Skip to content

Commit

Permalink
doc: refine when file is undefined in test events
Browse files Browse the repository at this point in the history
PR-URL: nodejs#48451
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
  • Loading branch information
MoLow authored and Ceres6 committed Aug 14, 2023
1 parent 6f9041c commit db39011
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/api/test.md
Expand Up @@ -1465,7 +1465,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.

Expand All @@ -1475,7 +1475,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.

Expand All @@ -1485,7 +1485,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.

Expand All @@ -1498,7 +1498,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.
Expand All @@ -1513,7 +1513,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.
Expand All @@ -1526,7 +1526,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.

Expand All @@ -1536,7 +1536,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.

Expand Down

0 comments on commit db39011

Please sign in to comment.