In this test I use the @testing-library/react-native and @testing-library/jest-native
$ git clone https://github.com/developerantoniosousa/try-lib-testing-library-rn
$ cd try-lib-testing-library-rn
$ yarn
$ yarn test
See the tests' code in __tests__ folder
You can generate the coverage about the project. For this run the command below:
$ yarn test --coverage
PS: when you do to test using the coverage, you can find the coverage folder in __tests__ folder.
you can find the configuration the Jest Framework for test in jest.config.js file.