Skip to content

Commit 53458bd

Browse files
committed
review
1 parent 7c04d32 commit 53458bd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

doc/api/test.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3686,32 +3686,38 @@ added:
36863686

36873687
The name of the test.
36883688

3689-
### `context.passed` {boolean}
3689+
### `context.passed`
36903690

36913691
<!-- YAML
36923692
added:
36933693
- v21.7.0
36943694
- v20.12.0
36953695
-->
36963696

3697-
Indicated wether the test succeeded, this defaults to `false` before the test is executed, e.g. in a `beforeEach` hook.
3697+
* Type: {boolean} `false` before the test is executed, e.g. in a `beforeEach` hook.
36983698

3699-
### `context.error` {Error|null}
3699+
Indicated whether the test succeeded.
3700+
3701+
### `context.error`
37003702

37013703
<!-- YAML
37023704
added:
37033705
- v21.7.0
37043706
- v20.12.0
37053707
-->
37063708

3709+
* Type: {Error|null}
3710+
37073711
The failure reason for the test/case; wrapped and available via `context.error.cause`.
37083712

3709-
### `context.attempt` {number}
3713+
### `context.attempt`
37103714

37113715
<!-- YAML
37123716
added: v25.0.0
37133717
-->
37143718

3719+
* Type: {number}
3720+
37153721
Number of times the test has been attempted.
37163722

37173723
### `context.plan(count[,options])`

0 commit comments

Comments
 (0)