Skip to content

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?

optional normalizeWhitespace?: 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.

Released under the MPL-2.0 License.