Skip to content

Documentation / listr2 / TestRendererSerializer

Class: TestRendererSerializer

Constructors

new TestRendererSerializer()

new TestRendererSerializer(options?): TestRendererSerializer

Parameters

options?: ListrTestRendererOptions

Returns

TestRendererSerializer

Defined in

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

Properties

options?

optional options: ListrTestRendererOptions

Defined in

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

Defined in

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>

Defined in

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