Home > @rushstack/terminal > MockWritable

MockWritable class

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A TerminalWritable subclass for use by unit tests.

Signature:

export declare class MockWritable extends TerminalWritable 

Extends: TerminalWritable

Properties

Property Modifiers Type Description
chunks   ITerminalChunk[] (BETA)

Methods

Method Modifiers Description
getAllOutput()   (BETA)
getFormattedChunks()   (BETA)
onWriteChunk(chunk)   (BETA)
reset()   (BETA)