Skip to content

Commit f35d4f5

Browse files
janhestersthymikee
authored andcommitted
docs: Add note for cleanup being unnecessary (#115)
1 parent e17734f commit f35d4f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ The [public API](docs/API.md) of `react-native-testing-library` is focused aroun
7474
- [`waitForElement`](docs/API.md#waitforelement) - waits for non-deterministic periods of time until your element appears or times out.
7575
- [`flushMicrotasksQueue`](docs/API.md#flushmicrotasksqueue) - waits for microtasks queue to flush.
7676

77+
**Note to users who are more familiar with `react-testing-library`:** This API does not expose `cleanup` because it doesn't interact with the DOM. There's nothing to clean up.
78+
7779
---
7880

7981
Supported and used by [Rally Health](https://www.rallyhealth.com/company/careers).

0 commit comments

Comments
 (0)