diff --git a/src/__tests__/getByApi.test.js b/src/__tests__/getByApi.test.js index db66b1c69..a2b2637d1 100644 --- a/src/__tests__/getByApi.test.js +++ b/src/__tests__/getByApi.test.js @@ -35,3 +35,18 @@ test('getByTestId returns only native elements', () => { 'No instances found with testID: myComponent' ); }); + +test('supports a regex matcher', () => { + const { getByTestId, getAllByTestId } = render( + + Text + + +