react-native-testing-library
react-native-testing-library copied to clipboard
🦉 Simple and complete React Native testing utilities that encourage good testing practices.
## Ask your Question I tried this for my AuthScreen.tsx My AuthScreen.test.tsx : ``` import React from 'react'; import { render } from '@testing-library/react-native'; import { Provider } from 'react-redux';...
## Describe the Feature Currently the CI checks include RNTL own tests. Proposed feature is to also run any integration tests included with example projects. This would allow as to...
We've set-up out navigation using these docs[ here](https://reactnavigation.org/docs/navigating-without-navigation-prop), so that we can call the navigation function imperatively (e.g. from middleware functions etc). In RootNavigation component, we set this up like...
## Describe the bug After upgrading from 0.71 to 0.72 one of my test fails because `fireEvent` no longer triggers the event. If I disable the new `isPointerEventEnabled` check the...
## Describe the bug While writing tests for my RN application, I was running into a problem where tests were failing with `Unable to find node on an unmounted component.`,...
## Describe the Feature Currently the render tree provided by `render` method consists of both host (e.g. `View`) and composite components (class & functional components). All query methods generally ignore...
## Describe the Feature `toJSON` helper would be handy when taking snapshots of components through queries. We are trying to migrate to v7 from native-testing-library. We don't like relying on...
First: I love the library and how it encourages best testing pratices! I don't know if I missed the part in the docs that describes that but I am unable...
## Describe the Feature After merging #1127 we should revisit our [How should I query?](https://callstack.github.io/react-native-testing-library/docs/how-should-i-query) document and update the recommended queries. The open question remains what should be the recommended...
## Describe the Feature When debugging tests on large components, i.e. pages, snapshots can be very long and may not be convenient for debugging purposes. Very often I'm mostly interested...