@cucumber/cucumber
    Preparing search index...

    Type Alias CoordinatorContext<OptionsType>

    Context object passed to a plugin's coordinator function

    type CoordinatorContext<OptionsType> = {
        environment: CoordinatorEnvironment;
        logger: ILogger;
        on: <EventKey extends CoordinatorEventKey>(
            event: EventKey,
            handler: CoordinatorEventHandler<EventKey>,
        ) => void;
        operation: PluginOperation;
        options: OptionsType;
        transform: <EventKey extends CoordinatorTransformKey>(
            event: EventKey,
            handler: CoordinatorTransformer<EventKey>,
        ) => void;
    }

    Type Parameters

    • OptionsType
    Index

    Properties

    Subset of the environment

    logger: ILogger

    Logger for emitting user-facing messages or diagnostics

    on: <EventKey extends CoordinatorEventKey>(
        event: EventKey,
        handler: CoordinatorEventHandler<EventKey>,
    ) => void

    Register an event handler

    operation: PluginOperation

    The operation Cucumber is doing in this process

    options: OptionsType

    Options for the plugin

    transform: <EventKey extends CoordinatorTransformKey>(
        event: EventKey,
        handler: CoordinatorTransformer<EventKey>,
    ) => void

    Register a transformer