drupflare/drangler - v0.1.0
    Preparing search index...

    Interface BufferIo

    Where a command writes. Every command takes one, so the gate lane never touches a real stream.

    interface BufferIo {
        stderr: string[];
        stdout: string[];
        err(text: string): void;
        json<T = unknown>(): T;
        out(text: string): void;
        text(): string;
    }

    Hierarchy (View Summary)

    • Io
      • BufferIo
    Index
    stderr: string[]
    stdout: string[]
    • Parameters

      • text: string

      Returns void

    • stdout parsed as one JSON document, for a spec driving --json

      Type Parameters

      • T = unknown

      Returns T

    • Parameters

      • text: string

      Returns void

    • everything written to stdout, joined, for a spec that asserts on the whole render

      Returns string