Skip to main content

mockStreams

Callable


  • Returns 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();