@cucumber/core
    Preparing search index...

    Type Alias DefinedTestCaseHook

    A test case hook that has been defined and is available for execution

    type DefinedTestCaseHook = {
        fn: SupportCodeFunction;
        id: string;
        name?: string;
        order: number;
        sourceReference: SourceReference;
        tags?: { compiled: ReturnType<typeof parse>; raw: string };
        toMessage(): Hook;
    }
    Index

    Properties

    The user-defined function for the hook

    id: string

    A unique identifier for the hook

    name?: string

    The name of the hook, if defined

    order: number

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

    sourceReference: SourceReference

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

    tags?: { compiled: ReturnType<typeof parse>; raw: string }

    The tag expression for the hook, if defined, including both raw and compiled forms

    Methods

    • Creates a Cucumber Message representing this hook

      Returns Hook