react-native-testing-library
react-native-testing-library copied to clipboard
🦉 Simple and complete React Native testing utilities that encourage good testing practices.
## Describe the bug Using the new [`renderHook`](https://callstack.github.io/react-native-testing-library/docs/api#renderhook) function included in this library does not behave the same way when it comes to awaiting different return values as the other...
## Describe the Feature This issue is based on #787 PR. That PR is stale but idea seems worth pursuing. Currently all queries ignored accessibility ignored the fact that certain...
Closes #827 - accepts a 'name' property to refine query ### Summary ### Test plan
## Describe the bug Tests fails with an error: `thrown: "Exceeded timeout of 5000 ms for a hook. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running...
I am trying to test my bottomTabNavigator and have followed the instructions here : https://callstack.github.io/react-native-testing-library/docs/react-navigation but I am getting this error ` mockConstructor(...): Nothing was returned from render. This usually...
## Describe the Feature Allow to add custom queries in `render` call. Similar to [RTL API](https://testing-library.com/docs/react-testing-library/api#queries). ## Possible Implementations Option 1 (RTL-like): * Provide a new `queries` option to `render`...
Hello in Advance. I can't make the Navigation test works. My first Screen is an animation in the useeffect function. I have tried waitfor, faketimer, customtimers, but the render function...
## Describe the bug The following test fails ``` test('rerender works when re-mounting root', () => { const result = render(Mt. Everest); result.rerender( Śnieżka ); expect(result.getByText('Śnieżka')).toBeTruthy(); }); ``` with following...
## Describe the bug Disabled calls onPress on fireEvent.press when rendered with a wrapper, but does not rendered without a wrapper. ## Expected behavior ## Steps to Reproduce `render()` does...
POC code for discussion about option 3 for #971 ### Summary * family of queries: `xxxByPredicate(predicate: (instance: ReactTestInstance) => boolean)` ### Test plan * so far only one POC tests...