react-native-test-utils icon indicating copy to clipboard operation
react-native-test-utils copied to clipboard

A test utils library for testing react native components

Results 4 react-native-test-utils issues
Sort by recently updated
recently updated
newest added

👋 hi Matthew! My name is Brandon. I happened across this because I wrote a [similar testing library](https://native-testing-library.com) for react-native. I love how simple the API is for this package,...

Having nested selectors would allow drilling down into a specific components render tree. Where trying to find a `` component inside of a render tree would require adding a `testID`...

enhancement
help wanted

After rendering a component, I believe that the component api `text()` function and `props` property are returning cached values of the rendered component's values because this line calls `toJSON()`: https://github.com/shichongrui/react-native-test-utils/blob/ecf0a7951721274298e0b0cd70e9b8428a33e9b5/index.js#L65...

I try to simulate the on press event but get this error: TypeError: Cannot read property 'validAttributes' of undefined My test: ~~~~ test('Open modal correctly', () => { const datePicker...