Skip to content

Documentation / listr2 / TestRendererSerializer

Class: TestRendererSerializer

Constructors

new TestRendererSerializer(options)

new TestRendererSerializer(options?): TestRendererSerializer

Parameters

options?: ListrTestRendererOptions

Returns

TestRendererSerializer

Source

packages/listr2/src/renderer/test/serializer.ts:7

Properties

options?

optional options: ListrTestRendererOptions

Source

packages/listr2/src/renderer/test/serializer.ts:7

Methods

serialize()

serialize<T>(event, data, task?): string

Type parameters

T extends ListrTaskEventType

Parameters

event: T

data: ListrTaskEventMap[T]

task?: ListrTestRendererTask

Returns

string

Source

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


generate()

generate<T>(event, data, task?): TestRendererSerializerOutput<T>

Type parameters

T extends ListrTaskEventType

Parameters

event: T

data: ListrTaskEventMap[T]

task?: ListrTestRendererTask

Returns

TestRendererSerializerOutput<T>

Source

packages/listr2/src/renderer/test/serializer.ts:13