- create
@cliBefore(functionName)
decorator. the function itself will get the@cliBeforeEach
result object - create
@cliAfter(functionName)
decorator. the function itself will get the@cliAfterEach
result object - generate a mock cli library
This will generate an <cli_name>-mock.js
library with the following methods:
<cli_name>-mock.inject(parentElement, onboardingFlowName)
- will inject a terminal object with the onboarding flow loaded. if no onboardingFlowName is given, runs the basic mock flow (supports help output and shows general output if defined)<cli_name>-mock.defineOnboarding(name, flow)
- will create an onboarding flow. theflow
param is an array of objects. each object is a step with the following attributes: