mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
4d389bb6cc
This also modifies the core CLI to be fed command programatically, which is useful for being able to do thing like mock endpoints with tools like "nock", and provide an easier debugging experience. The tests utilise a "runCommand" helper that intercepts and captures stdout/stderr writes and returns them once the command has finished running. At this point the test implementation can parse the stdout/stderr logs and assess nock interceptions to determine if the command ran correctly. This change also homogenises debug messages to start with `[debug]`, however this is not strictly enforced by linting rules. Change-type: minor Signed-off-by: Lucian <lucian.buzzo@gmail.com> |
||
---|---|---|
.. | ||
auth | ||
utils | ||
helpers.ts | ||
version.spec.ts |