@cucumber/core
    Preparing search index...

    Interface NewTestCaseHook

    Attributes for creating a new test case hook

    interface NewTestCaseHook {
        fn: SupportCodeFunction;
        name?: string;
        sourceReference: SourceReference;
        tags?: string;
    }
    Index

    Properties

    The user-defined function for the hook

    name?: string

    Optional name for the hook

    sourceReference: SourceReference

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

    tags?: string

    Optional tag expression which, if not a match for a given scenario, will cause the hook to be omitted from the test