API Reference / @gtkx/testing / MatcherOptions
Type Alias: MatcherOptions
MatcherOptions =
object&WaitForOptions
Defined in: types.d.ts:31
Options controlling text matching and, for asynchronous queries, polling behavior.
Type Declaration
collapseWhitespace?
optionalcollapseWhitespace?:boolean
Forwarded to the default normalizer when no custom normalizer is given.
exact?
optionalexact?:boolean
When true (the default), require an exact match; when false, match case-insensitively as a substring.
normalizer?
optionalnormalizer?:NormalizerFn
Custom normalizer replacing the default; cannot be combined with trim or collapseWhitespace.
suggest?
optionalsuggest?:boolean
Whether to include a suggested better query in error messages.
trim?
optionaltrim?:boolean
Forwarded to the default normalizer when no custom normalizer is given.