step property
({Future<bool> Function(TestStepDefinition definition) $1, Future<bool> Function(FutureOr<void> fn(TestContext)) $2, Future<bool> Function(String name, FutureOr<void> fn(TestContext)) $3})
get
step
Overload accessor: $1, $2, $3
Implementation
({
/// Run a sub step of the parent test or step. Returns a promise
/// that resolves to a boolean signifying if the step completed successfully.
///
/// The returned promise never rejects unless the arguments are invalid.
///
/// If the test was ignored the promise returns `false`.
///
/// ```ts
/// Deno.test({
/// name: "a parent test",
/// async fn(t) {
/// console.log("before the step");
/// await t.step({
/// name: "step 1",
/// fn(t) {
/// console.log("current step:", t.name);
/// }
/// });
/// console.log("after the step");
/// }
/// });
/// ```
_i2.Future<_i2.bool> Function(_i4.TestStepDefinition definition) $1,
/// Run a sub step of the parent test or step. Returns a promise
/// that resolves to a boolean signifying if the step completed successfully.
///
/// The returned promise never rejects unless the arguments are invalid.
///
/// If the test was ignored the promise returns `false`.
///
/// ```ts
/// Deno.test(async function aParentTest(t) {
/// console.log("before the step");
/// await t.step(function step1(t) {
/// console.log("current step:", t.name);
/// });
/// console.log("after the step");
/// });
/// ```
_i2.Future<_i2.bool> Function(
_i7.FutureOr<void> Function(_i4.TestContext) fn) $2,
/// Run a sub step of the parent test or step. Returns a promise
/// that resolves to a boolean signifying if the step completed successfully.
///
/// The returned promise never rejects unless the arguments are invalid.
///
/// If the test was ignored the promise returns `false`.
///
/// ```ts
/// Deno.test(
/// "a parent test",
/// async (t) => {
/// console.log("before the step");
/// await t.step(
/// "step 1",
/// (t) => {
/// console.log("current step:", t.name);
/// }
/// );
/// console.log("after the step");
/// }
/// );
/// ```
_i2.Future<_i2.bool> Function(
_i2.String name,
_i7.FutureOr<void> Function(_i4.TestContext) fn,
) $3,
}) get step => (
$1: _step$1,
$2: _step$2,
$3: _step$3,
);