Interface Parser<T>

Type Parameters

  • T

Hierarchy

  • Parser
  • Invoked once per task.

    Throws

    an error if the Parser implementation wants to reject the task. It is valid to raise Errors if stderr is undefined.

    See

    BatchProcessOptions

    Parameters

    • stdout: string

      the concatenated stream from stdin, stripped of the PASS or FAIL tokens from BatchProcessOptions.

    • stderr: undefined | string

      if defined, includes all text emitted to stderr.

    • passed: boolean

      true iff the PASS pattern was found in stdout.

    Returns T | Promise<T>

Generated using TypeDoc