diff --git a/doc/api/test.md b/doc/api/test.md index f5a5fba63aebc0..29d071e668b8c6 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -3686,6 +3686,40 @@ added: The name of the test. +### `context.passed` + + + +* Type: {boolean} `false` before the test is executed, e.g. in a `beforeEach` hook. + +Indicated whether the test succeeded. + +### `context.error` + + + +* Type: {Error|null} + +The failure reason for the test/case; wrapped and available via `context.error.cause`. + +### `context.attempt` + + + +* Type: {number} + +Number of times the test has been attempted. + ### `context.plan(count[,options])`