Skip to content

Interface: TextMatcherOptions

@termwright/test


@termwright/test / TextMatcherOptions

Defined in: test/src/matchers.ts:61

Options for TermwrightMatchers.toHaveText.

readonly optional exact?: boolean

Defined in: test/src/matchers.ts:67

true (default for locators) compares the whole accessible text after whitespace normalization; false asserts a substring. A terminal as the subject always uses substring matching against the visible grid.


readonly optional timeout?: number

Defined in: test/src/matchers.ts:57

Milliseconds to keep re-probing. Defaults to the expect timeout class.

PollOptions.timeout