Skip to content

Commit 363eca1

Browse files
authored
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 b0e08d1 commit 363eca1

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
@@ -1465,7 +1465,7 @@ Emitted when code coverage is enabled and all tests have completed.
14651465

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

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

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

@@ -1485,7 +1485,7 @@ Emitted when [`context.diagnostic`][] is called.
14851485

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

@@ -1498,7 +1498,7 @@ Emitted when a test is enqueued for execution.
14981498
* `duration` {number} The duration of the test in milliseconds.
14991499
* `error` {Error} The error thrown by the test.
15001500
* `file` {string|undefined} The path of the test file,
1501-
undefined if test is not ran through a file.
1501+
`undefined` if test was run through the REPL.
15021502
* `name` {string} The test name.
15031503
* `nesting` {number} The nesting level of the test.
15041504
* `testNumber` {number} The ordinal number of the test.
@@ -1513,7 +1513,7 @@ Emitted when a test fails.
15131513
* `details` {Object} Additional execution metadata.
15141514
* `duration` {number} The duration of the test in milliseconds.
15151515
* `file` {string|undefined} The path of the test file,
1516-
undefined if test is not ran through a file.
1516+
`undefined` if test was run through the REPL.
15171517
* `name` {string} The test name.
15181518
* `nesting` {number} The nesting level of the test.
15191519
* `testNumber` {number} The ordinal number of the test.
@@ -1526,7 +1526,7 @@ Emitted when a test passes.
15261526

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

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

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

0 commit comments

Comments
 (0)