Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 820aa55

Browse filesBrowse files
MoLowruyadorno
authored andcommitted
doc: refine when file is undefined in test events
PR-URL: #48451 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
1 parent feb6a54 commit 820aa55
Copy full SHA for 820aa55

File tree

Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Open diff view settings
Collapse file

‎doc/api/test.md‎

Copy file name to clipboardExpand all lines: doc/api/test.md
+7-7Lines changed: 7 additions & 7 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ Emitted when code coverage is enabled and all tests have completed.
13981398

13991399
* `data` {Object}
14001400
* `file` {string|undefined} The path of the test file,
1401-
undefined if test is not ran through a file.
1401+
`undefined` if test was run through the REPL.
14021402
* `name` {string} The test name.
14031403
* `nesting` {number} The nesting level of the test.
14041404

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

14091409
* `data` {Object}
14101410
* `file` {string|undefined} The path of the test file,
1411-
undefined if test is not ran through a file.
1411+
`undefined` if test was run through the REPL.
14121412
* `message` {string} The diagnostic message.
14131413
* `nesting` {number} The nesting level of the test.
14141414

@@ -1418,7 +1418,7 @@ Emitted when [`context.diagnostic`][] is called.
14181418

14191419
* `data` {Object}
14201420
* `file` {string|undefined} The path of the test file,
1421-
undefined if test is not ran through a file.
1421+
`undefined` if test was run through the REPL.
14221422
* `name` {string} The test name.
14231423
* `nesting` {number} The nesting level of the test.
14241424

@@ -1431,7 +1431,7 @@ Emitted when a test is enqueued for execution.
14311431
* `duration` {number} The duration of the test in milliseconds.
14321432
* `error` {Error} The error thrown by the test.
14331433
* `file` {string|undefined} The path of the test file,
1434-
undefined if test is not ran through a file.
1434+
`undefined` if test was run through the REPL.
14351435
* `name` {string} The test name.
14361436
* `nesting` {number} The nesting level of the test.
14371437
* `testNumber` {number} The ordinal number of the test.
@@ -1446,7 +1446,7 @@ Emitted when a test fails.
14461446
* `details` {Object} Additional execution metadata.
14471447
* `duration` {number} The duration of the test in milliseconds.
14481448
* `file` {string|undefined} The path of the test file,
1449-
undefined if test is not ran through a file.
1449+
`undefined` if test was run through the REPL.
14501450
* `name` {string} The test name.
14511451
* `nesting` {number} The nesting level of the test.
14521452
* `testNumber` {number} The ordinal number of the test.
@@ -1459,7 +1459,7 @@ Emitted when a test passes.
14591459

14601460
* `data` {Object}
14611461
* `file` {string|undefined} The path of the test file,
1462-
undefined if test is not ran through a file.
1462+
`undefined` if test was run through the REPL.
14631463
* `nesting` {number} The nesting level of the test.
14641464
* `count` {number} The number of subtests that have ran.
14651465

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

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.