diff --git a/src/__tests__/element-queries.js b/src/__tests__/element-queries.js index bac8ac4c..05724c15 100644 --- a/src/__tests__/element-queries.js +++ b/src/__tests__/element-queries.js @@ -57,6 +57,15 @@ test('get throws a useful error message', () => {
`) + expect(() => getByText('Lucy Ricardo')) + .toThrowErrorMatchingInlineSnapshot(` + Unable to find an element with the text: Lucy Ricardo (normalized from 'Lucy Ricardo'). This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. + + Ignored nodes: comments,