Skip to content

Add labeled step like step(name, label, fn) so that user can access the step with label after #5

@lambdalisue

Description

@lambdalisue

For example

scenario(...)
  .step("Something interesting", "foo", () => {
    return {foo: "bar"};
  })
  .step("Use interesting things", (ctx) => {
    const obj = ctx.results.foo; // instead of ctx.previous or ctx.results[0]
    return obj;
  })
  .build();

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions