API Reference / @gtkx/testing / PrettyWidgetOptions
Type Alias: PrettyWidgetOptions
PrettyWidgetOptions =
object
Defined in: pretty-widget.d.ts:9
Options controlling how a widget tree is rendered to a string by prettyWidget and logWidget.
Properties
getId?
optionalgetId?:WidgetIdResolver
Defined in: pretty-widget.d.ts:15
Resolves an id attribute to show for each widget.
maxDepth?
optionalmaxDepth?:number
Defined in: pretty-widget.d.ts:17
Stops descending past this depth, replacing deeper children with a summary line.
maxLength?
optionalmaxLength?:number
Defined in: pretty-widget.d.ts:11
Truncates the output once it exceeds this many characters.
shouldHighlight?
optionalshouldHighlight?:boolean
Defined in: pretty-widget.d.ts:13
Whether to apply ANSI color highlighting; defaults to the terminal capabilities.