React Testing Library · Function
getNodeText
getNodeText returns an element's text with extra whitespace removed. For submit and button inputs, it reads the displayed value.
Last updated
Syntax
getNodeText(node: HTMLElement): stringIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
getByTextqueryByText