Skip to content

Commit 4ab5e8d

Browse files
MoLowRafaelGSS
authored andcommitted
doc: refine when file is undefined in test events
PR-URL: #48451 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
1 parent f7f3208 commit 4ab5e8d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/api/test.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ Emitted when code coverage is enabled and all tests have completed.
14631463

14641464
* `data` {Object}
14651465
* `file` {string|undefined} The path of the test file,
1466-
undefined if test is not ran through a file.
1466+
`undefined` if test was run through the REPL.
14671467
* `name` {string} The test name.
14681468
* `nesting` {number} The nesting level of the test.
14691469

@@ -1473,7 +1473,7 @@ Emitted when a test is dequeued, right before it is executed.
14731473

14741474
* `data` {Object}
14751475
* `file` {string|undefined} The path of the test file,
1476-
undefined if test is not ran through a file.
1476+
`undefined` if test was run through the REPL.
14771477
* `message` {string} The diagnostic message.
14781478
* `nesting` {number} The nesting level of the test.
14791479

@@ -1483,7 +1483,7 @@ Emitted when [`context.diagnostic`][] is called.
14831483

14841484
* `data` {Object}
14851485
* `file` {string|undefined} The path of the test file,
1486-
undefined if test is not ran through a file.
1486+
`undefined` if test was run through the REPL.
14871487
* `name` {string} The test name.
14881488
* `nesting` {number} The nesting level of the test.
14891489

@@ -1496,7 +1496,7 @@ Emitted when a test is enqueued for execution.
14961496
* `duration` {number} The duration of the test in milliseconds.
14971497
* `error` {Error} The error thrown by the test.
14981498
* `file` {string|undefined} The path of the test file,
1499-
undefined if test is not ran through a file.
1499+
`undefined` if test was run through the REPL.
15001500
* `name` {string} The test name.
15011501
* `nesting` {number} The nesting level of the test.
15021502
* `testNumber` {number} The ordinal number of the test.
@@ -1511,7 +1511,7 @@ Emitted when a test fails.
15111511
* `details` {Object} Additional execution metadata.
15121512
* `duration` {number} The duration of the test in milliseconds.
15131513
* `file` {string|undefined} The path of the test file,
1514-
undefined if test is not ran through a file.
1514+
`undefined` if test was run through the REPL.
15151515
* `name` {string} The test name.
15161516
* `nesting` {number} The nesting level of the test.
15171517
* `testNumber` {number} The ordinal number of the test.
@@ -1524,7 +1524,7 @@ Emitted when a test passes.
15241524

15251525
* `data` {Object}
15261526
* `file` {string|undefined} The path of the test file,
1527-
undefined if test is not ran through a file.
1527+
`undefined` if test was run through the REPL.
15281528
* `nesting` {number} The nesting level of the test.
15291529
* `count` {number} The number of subtests that have ran.
15301530

@@ -1534,7 +1534,7 @@ Emitted when all subtests have completed for a given test.
15341534

15351535
* `data` {Object}
15361536
* `file` {string|undefined} The path of the test file,
1537-
undefined if test is not ran through a file.
1537+
`undefined` if test was run through the REPL.
15381538
* `name` {string} The test name.
15391539
* `nesting` {number} The nesting level of the test.
15401540

0 commit comments

Comments
 (0)