@boost/cliTest utilitiesFunctionsmockStreamsmockStreams CallablemockStreams(append?: boolean): ProgramStreamsReturns mocked stderr, stdout, and stdin streams that can be passed to a Program. This does not mock all stream functionality, only those required by Boost and Ink. import { mockStreams } from '@boost/cli/test';const streams = mockStreams();
Returns mocked
stderr
,stdout
, andstdin
streams that can be passed to aProgram
. This does not mock all stream functionality, only those required by Boost and Ink.