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(tasks, options)

new TestRenderer(tasks, options): TestRenderer

Parameters

tasks: ListrTestRendererTask[]

options: ListrTestRendererOptions

Returns

TestRenderer

Source

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

Source

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

Source

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

Source

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


logger

private readonly logger: ListrLogger<string>

Source

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


serializer

private serializer: TestRendererSerializer

Source

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


tasks

private readonly tasks: ListrTestRendererTask[]

Source

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


options

private readonly options: ListrTestRendererOptions

Source

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

Methods

render()

render(): void

A function to what to do on render

Returns

void

Implementation of

ListrRenderer.render

Source

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

Source

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


renderer()

private renderer(tasks): void

Parameters

tasks: ListrTestRendererTask[]

Returns

void

Source

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