Skip to content

Documentation / listr2 / TestRenderer

Class: TestRenderer

The definition of a ListrRenderer.

See

https://listr2.kilic.dev/renderer/renderer.html

Implements

Constructors

new TestRenderer()

new TestRenderer(tasks, options): TestRenderer

Parameters

tasks: ListrTestRendererTask[]

options: ListrTestRendererOptions

Returns

TestRenderer

Defined in

packages/listr2/src/renderer/test/renderer.ts:43

Properties

nonTTY

static nonTTY: boolean = true

designate whether this renderer can work in non-tty environments

Implementation of

ListrRenderer.nonTTY

Defined in

packages/listr2/src/renderer/test/renderer.ts:8


rendererOptions

static rendererOptions: ListrTestRendererOptions

designate renderer global options that is specific to the current renderer

Implementation of

ListrRenderer.rendererOptions

Defined in

packages/listr2/src/renderer/test/renderer.ts:9


rendererTaskOptions

static rendererTaskOptions: never

designate renderer per task options that is specific to the current renderer

Implementation of

ListrRenderer.rendererTaskOptions

Defined in

packages/listr2/src/renderer/test/renderer.ts:38

Methods

render()

render(): void

A function to what to do on render

Returns

void

Implementation of

ListrRenderer.render

Defined in

packages/listr2/src/renderer/test/renderer.ts:54


end()

end(): void

A function to what to do on end of the render

Returns

void

Implementation of

ListrRenderer.end

Defined in

packages/listr2/src/renderer/test/renderer.ts:59