Rush StackShopBlogEvents
Skip to main content

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

PropertyModifiersTypeDescription
chunksreadonlyITerminalChunk[](BETA)

Methods

MethodModifiersDescription
getAllOutput()(BETA)
getFormattedChunks()(BETA)
onWriteChunk(chunk)protected(BETA)
reset()(BETA)