API Reference / @gtkx/testing / PrettyWidgetOptions
Type Alias: PrettyWidgetOptions
PrettyWidgetOptions =
object
Defined in: pretty-widget.d.ts:8
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:14
Resolves an id attribute to show for each widget.
highlight?
optionalhighlight?:boolean
Defined in: pretty-widget.d.ts:12
Whether to apply ANSI color highlighting; defaults to the terminal capabilities.
maxLength?
optionalmaxLength?:number
Defined in: pretty-widget.d.ts:10
Truncates the output once it exceeds this many characters.