Skip to content

Commit 40c3868

Browse files
committed
.
1 parent bf4e88d commit 40c3868

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

website/docs/14.x/docs/advanced/testing-env.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ Instead, RNTL uses [Test Renderer](https://github.com/mdjastrzebski/test-rendere
2525
Using Test Renderer has trade-offs:
2626

2727
Benefits:
28+
2829
- Tests run on most CIs (Linux, etc) without a mobile device or emulator
2930
- Faster test execution
3031
- Light runtime environment
3132

3233
Limitations:
34+
3335
- Tests don't execute native code
3436
- Tests are unaware of view state managed by native components, e.g., focus, unmanaged text boxes, etc.
3537
- Assertions don't operate on native view hierarchy

website/docs/14.x/docs/guides/faq.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ You can learn more about our testing environment [here](/docs/advanced/testing-e
1616
This approach has benefits and limitations:
1717

1818
Benefits:
19+
1920
- Tests most of the logic of regular React Native apps
2021
- Runs tests on any OS supported by Jest or other test runners, e.g., on CI
2122
- Uses fewer resources than full runtime simulation
2223
- Works with Jest fake timers
2324

2425
Limitations:
26+
2527
- Cannot test native features
2628
- May not perfectly simulate certain JavaScript features, but we're working on it
2729

0 commit comments

Comments
 (0)