Skip to content

CapturedOutput ​

Captured output from a createCaptureOutput instance.

Signatures ​

ts
interface CapturedOutput {}

Members ​

Properties ​

activity ​

Activity events from spinner and progress handles.

Captured separately from stdout/stderr to allow targeted assertions on activity lifecycle without parsing text output. Events are recorded in chronological order.

ts
activity: ActivityEvent[];

stderr ​

Lines written to stderr.

In normal mode: warn and error output. In JSON mode: warn, error, log, and info output.

ts
stderr: string[];

stdout ​

Lines written to stdout.

In normal mode: log, info, and json output. In JSON mode: only json output (log/info redirected to stderr).

ts
stdout: string[];

See Also ​

Released under the MIT License.