diff --git a/src/__tests__/getByApi.test.js b/src/__tests__/getByApi.test.js new file mode 100644 index 000000000..db66b1c69 --- /dev/null +++ b/src/__tests__/getByApi.test.js @@ -0,0 +1,37 @@ +// @flow +import React from 'react'; +import { View, Text, TextInput, Button } from 'react-native'; +import { render } from '..'; + +const MyComponent = () => { + return My Component; +}; + +test('getByTestId returns only native elements', () => { + const { getByTestId, getAllByTestId } = render( + + Text + + +