We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
passed
error
TestContext
1 parent 15bdf38 commit a97071eCopy full SHA for a97071e
doc/api/test.md
@@ -3686,6 +3686,26 @@ added:
3686
3687
The name of the test.
3688
3689
+### `context.passed` {boolean}
3690
+
3691
+<!-- YAML
3692
+added:
3693
+ - v21.7.0
3694
+ - v20.12.0
3695
+-->
3696
3697
+Indicated wether the test succeeded, this defaults to `false` before the test is executed, e.g. in a `beforeEach` hook.
3698
3699
+### `context.error` {Error|null}
3700
3701
3702
3703
3704
3705
3706
3707
+The failure reason for the test/case; wrapped and available via `context.error.cause`.
3708
3709
### `context.plan(count[,options])`
3710
3711
<!-- YAML
0 commit comments