@cucumber/cucumber
    Preparing search index...

    Class JsonFormatter

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    colorFns: IColorFns
    cwd: string
    eventDataCollector: EventDataCollector
    log: IFormatterLogFn
    printAttachments: boolean
    snippetBuilder: StepDefinitionSnippetBuilder
    stream: Writable
    supportCodeLibrary: SupportCodeLibrary
    documentation: string = 'Prints the feature as JSON. The JSON format is in maintenance mode. Please consider using the message formatter with the standalone json-formatter (https://github.com/cucumber/json-formatter).'

    Methods

    • Parameters

      • docString: PickleDocString
      • gherkinStep: Step

      Returns any

    • Parameters

      • stepArgument: PickleStepArgument
      • gherkinStep: Step

      Returns any

    • Parameters

      • __namedParameters: IBuildJsonFeatureOptions

      Returns IJsonFeature

    • Parameters

      • __namedParameters: IBuildJsonScenarioOptions

      Returns IJsonScenario

    • Parameters

      • __namedParameters: {
            feature: Feature;
            gherkinScenarioMap: Record<string, Scenario>;
            pickle: Pickle;
        }

      Returns IJsonTag[]

    • Parameters

      • __namedParameters: IBuildJsonStepOptions

      Returns IJsonStep