◐ Shell
clean mode source ↗

doc: mention test runner retry attemp is zero based · nodejs/node@938af9b

Original file line numberDiff line numberDiff line change

@@ -3867,7 +3867,9 @@ added: v25.0.0

38673867
38683868

* Type: {number}

38693869
3870-

Number of times the test has been attempted.

3870+

The attempt number of the test. This value is zero-based, so the first attempt is `0`,

3871+

the second attempt is `1`, and so on. This property is useful in conjunction with the

3872+

`--test-rerun-failures` option to determine which attempt the test is currently running.

38713873
38723874

### `context.workerId`

38733875

@@ -4240,9 +4242,9 @@ added: REPLACEME

42404242
42414243

* Type: {number}

42424244
4243-

The current attempt number of the suite. Used in conjunction with the

4244-

`--test-rerun-failures` option to determine the attempt number of the current

4245-

run.

4245+

The attempt number of the suite. This value is zero-based, so the first attempt is `0`,

4246+

the second attempt is `1`, and so on. This property is useful in conjunction with the

4247+

`--test-rerun-failures` option to determine the attempt number of the current run.

42464248
42474249

### `context.diagnostic(message)`

42484250