Skip to content

Commit e0d2e1c

Browse files
MoLownodejs-github-bot
authored andcommitted
doc: mention test runner retry attemp is zero based
PR-URL: #62504 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
1 parent cdc5774 commit e0d2e1c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/api/test.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3913,7 +3913,9 @@ added: v25.0.0
39133913

39143914
* Type: {number}
39153915

3916-
Number of times the test has been attempted.
3916+
The attempt number of the test. This value is zero-based, so the first attempt is `0`,
3917+
the second attempt is `1`, and so on. This property is useful in conjunction with the
3918+
`--test-rerun-failures` option to determine which attempt the test is currently running.
39173919

39183920
### `context.workerId`
39193921

@@ -4286,9 +4288,9 @@ added: REPLACEME
42864288

42874289
* Type: {number}
42884290

4289-
The current attempt number of the suite. Used in conjunction with the
4290-
`--test-rerun-failures` option to determine the attempt number of the current
4291-
run.
4291+
The attempt number of the suite. This value is zero-based, so the first attempt is `0`,
4292+
the second attempt is `1`, and so on. This property is useful in conjunction with the
4293+
`--test-rerun-failures` option to determine the attempt number of the current run.
42924294

42934295
### `context.diagnostic(message)`
42944296

0 commit comments

Comments
 (0)