@cucumber/core
    Preparing search index...

    Type Alias DefinedStep

    A step definition that has been defined and is available for matching

    type DefinedStep = {
        expression: {
            compiled: CucumberExpression | RegularExpression;
            raw: string | RegExp;
        };
        fn: SupportCodeFunction;
        id: string;
        order: number;
        sourceReference: SourceReference;
        toMessage(): StepDefinition;
    }
    Index

    Properties

    expression: {
        compiled: CucumberExpression | RegularExpression;
        raw: string | RegExp;
    }

    The text expression for the step, including both raw and compiled forms

    This may be a Cucumber Expression or a regular expression

    The user-defined function for the step

    id: string

    A unique identifier for the step

    order: number

    The number of this step definition in the definition-ordered sequence of support code

    sourceReference: SourceReference

    A reference to the source code of the user-defined function

    Methods

    • Creates a Cucumber Message representing this step definition

      Returns StepDefinition