API Reference / @gtkx/testing / TextContentOptions
Type Alias: TextContentOptions
TextContentOptions =
object
Defined in: packages/testing/src/matchers.ts:49
Options controlling how toHaveTextContent normalizes the text it reads.
Properties
normalizeWhitespace?
optionalnormalizeWhitespace?:boolean
Defined in: packages/testing/src/matchers.ts:54
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.