Skip to main content

mockProgram

Callable


  • Returns a Program instance with required options pre-filled and streams mocked (unless manually provided).

    import { mockProgram } from '@boost/cli/test';

    const program = mockProgram({ name: 'Example' });