@cucumber/core
    Preparing search index...

    Interface NewStep

    Attributes for creating a new step definition

    interface NewStep {
        fn: SupportCodeFunction;
        pattern: string | RegExp;
        sourceReference: SourceReference;
    }
    Index

    Properties

    The user-defined function for the step

    pattern: string | RegExp

    Either a Cucumber Expression or regular expression used to match the step with steps from Gherkin

    sourceReference: SourceReference

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