Runs a Command outside the context of a Program, but mimics similar functionality,
including React component rendering. Params are required as they're passed to the run method,
while options are optional and assume class properties have been defined. Also, the exit
and log methods have been mocked with Vitest spies so that they can be asserted.
Runs a
Command
outside the context of aProgram
, but mimics similar functionality, including React component rendering. Params are required as they're passed to the run method, while options are optional and assume class properties have been defined. Also, theexit
andlog
methods have been mocked with Vitest spies so that they can be asserted.