diff --git a/package.json b/package.json index 7af0281b..4d24324b 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "url": "https://www.github.com/callstack/react-native-testing-library.git" }, "homepage": "https://oss.callstack.com/react-native-testing-library", - "author": "Michał Pierzchała (https://github.com/thymikee), Maciej Jastrzębski (https://github.com/mdjastrzebski)", + "author": "Maciej Jastrzębski (https://github.com/mdjastrzebski), Michał Pierzchała (https://github.com/thymikee)", "contributors": [ "Augustin Le Fèvre (https://github.com/AugustinLF)", "Pierre Zimmermann (https://github.com/pierrezimmermannbam)", diff --git a/website/docs/14.x/docs/advanced/testing-env.mdx b/website/docs/14.x/docs/advanced/testing-env.mdx index f6e27dc9..338c63e6 100644 --- a/website/docs/14.x/docs/advanced/testing-env.mdx +++ b/website/docs/14.x/docs/advanced/testing-env.mdx @@ -25,11 +25,13 @@ Instead, RNTL uses [Test Renderer](https://github.com/mdjastrzebski/test-rendere Using Test Renderer has trade-offs: Benefits: + - Tests run on most CIs (Linux, etc) without a mobile device or emulator - Faster test execution - Light runtime environment Limitations: + - Tests don't execute native code - Tests are unaware of view state managed by native components, e.g., focus, unmanaged text boxes, etc. - Assertions don't operate on native view hierarchy diff --git a/website/docs/14.x/docs/guides/faq.mdx b/website/docs/14.x/docs/guides/faq.mdx index d489e3de..2724a1ef 100644 --- a/website/docs/14.x/docs/guides/faq.mdx +++ b/website/docs/14.x/docs/guides/faq.mdx @@ -16,12 +16,14 @@ You can learn more about our testing environment [here](/docs/advanced/testing-e This approach has benefits and limitations: Benefits: + - Tests most of the logic of regular React Native apps - Runs tests on any OS supported by Jest or other test runners, e.g., on CI - Uses fewer resources than full runtime simulation - Works with Jest fake timers Limitations: + - Cannot test native features - May not perfectly simulate certain JavaScript features, but we're working on it