Closed tommy-mitchell closed 1 year ago
Per https://github.com/tommy-mitchell/listr-cli/issues/5. Updates meow to v12 and listr2 to v6.
meow
listr2
Is it worth using the test renderer? It provides more flexibility, but I'm not sure if the noise is worth it:
If the extra properties need to be inspected in the future, the test renderer can be used (probably via t.like checks).
t.like
Per https://github.com/tommy-mitchell/listr-cli/issues/5. Updates
meow
to v12 andlistr2
to v6.Is it worth using the test renderer? It provides more flexibility, but I'm not sure if the noise is worth it:
Verbose Renderer
```sh [STARTED] node [TITLE] Running "node -e 'process.exit(0)'"... [TITLE] node [COMPLETED] node ```Test Renderer
```json { "event": "STATE", "data": "STARTED", "task": { "hasRolledBack": false, "isRollingBack": false, "isCompleted": false, "isSkipped": false, "hasFinalized": false, "hasSubtasks": false, "title": "node", "hasReset": false, "hasTitle": true, "isPrompt": false, "isPaused": false, "isPending": true, "isStarted": true, "hasFailed": false, "isEnabled": true, "isRetrying": false, "path": ["node"] } } ``` ```json { "event": "TITLE", "data": "Running \"node -e 'process.exit(0)'\"...", "task": { "hasRolledBack": false, "isRollingBack": false, "isCompleted": false, "isSkipped": false, "hasFinalized": false, "hasSubtasks": false, "title": "Running \"node -e 'process.exit(0)'\"...", "hasReset": false, "hasTitle": true, "isPrompt": false, "isPaused": false, "isPending": true, "isStarted": true, "hasFailed": false, "isEnabled": true, "isRetrying": false, "path": ["node"] } } ``` ```json { "event": "TITLE", "data": "node", "task": { "hasRolledBack": false, "isRollingBack": false, "isCompleted": false, "isSkipped": false, "hasFinalized": false, "hasSubtasks": false, "title": "node", "hasReset": false, "hasTitle": true, "isPrompt": false, "isPaused": false, "isPending": true, "isStarted": true, "hasFailed": false, "isEnabled": true, "isRetrying": false, "path": ["node"] } } ``` ```json { "event": "OUTPUT", "data": "", "task": { "hasRolledBack": false, "isRollingBack": false, "isCompleted": false, "isSkipped": false, "hasFinalized": false, "hasSubtasks": false, "title": "node", "hasReset": false, "hasTitle": true, "isPrompt": false, "isPaused": false, "isPending": true, "isStarted": true, "hasFailed": false, "isEnabled": true, "isRetrying": false, "path": ["node"] } } ``` ```json { "event": "STATE", "data": "COMPLETED", "task": { "hasRolledBack": false, "isRollingBack": false, "isCompleted": true, "isSkipped": false, "hasFinalized": true, "hasSubtasks": false, "title": "node", "hasReset": false, "hasTitle": true, "isPrompt": false, "isPaused": false, "isPending": false, "isStarted": false, "hasFailed": false, "isEnabled": true, "isRetrying": false, "path": ["node"] } } ```If the extra properties need to be inspected in the future, the test renderer can be used (probably via
t.like
checks).