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