(instance: TestInstance)
| 18 | type ByTextOptions = CommonQueryOptions & TextMatchOptions; |
| 19 | |
| 20 | const queryAllByText = (instance: TestInstance): QueryAllByQuery<TextMatch, ByTextOptions> => |
| 21 | function queryAllByTextFn(text, options = {}) { |
| 22 | return findAll(instance, (item) => isHostText(item) && matchTextContent(item, text, options), { |
| 23 | ...options, |
| 24 | matchDeepestOnly: true, |
| 25 | }); |
| 26 | }; |
| 27 | |
| 28 | const getMultipleError = (text: TextMatch) => `Found multiple elements with text: ${String(text)}`; |
| 29 |
nothing calls this directly
no test coverage detected
searching dependent graphs…