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: #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 RafaelGSS committed Jul 3, 2023
1 parent f7f3208 commit 4ab5e8d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/api/test.md
Expand Up @@ -1463,7 +1463,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 @@ -1473,7 +1473,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 @@ -1483,7 +1483,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 @@ -1496,7 +1496,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 @@ -1511,7 +1511,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 @@ -1524,7 +1524,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 @@ -1534,7 +1534,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 4ab5e8d

Please sign in to comment.