API Reference / @gtkx/testing / TextContentOptions
Type Alias: TextContentOptions
TextContentOptions =
object
Defined in: matchers.d.ts:5
Options controlling how toHaveTextContent normalizes the text it reads.
Properties
normalizeWhitespace?
optionalnormalizeWhitespace?:boolean
Defined in: matchers.d.ts:10
When true (the default), trim the text and collapse runs of whitespace into single spaces before comparing. When false, only replace non-breaking spaces with regular ones.