You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,16 +119,21 @@ You can find the source of `QuestionsBoard` component and this example [here](ht
119
119
120
120
## API / Usage
121
121
122
-
The public API of `@testing-library/react-native` is focused around these essential APIs:
123
-
124
-
-[`render`](https://callstack.github.io/react-native-testing-library/docs/render) – renders the given React element
125
-
-[`screen`](https://callstack.github.io/react-native-testing-library/docs/screen) – queries for looking up rendered elements, as well as some useful helpers.
126
-
-[`userEvent`](https://callstack.github.io/react-native-testing-library/docs/user-event) - realistic simulation of user interaction with elements like buttons and text inputs.
127
-
-[`fireEvent`](https://callstack.github.io/react-native-testing-library/docs/fire-event) - general purpose event simulation.
128
-
-[Jest matchers](https://callstack.github.io/react-native-testing-library/docs/jest-matchers) - validate assumptions about your components.
129
-
-[`waitFor`](https://callstack.github.io/react-native-testing-library/docs/other#waitfor) - waits for non-deterministic periods of time until the queried element is added or times out.
130
-
-[`waitForElementToBeRemoved`](https://callstack.github.io/react-native-testing-library/docs/other#waitforelementtoberemoved) - waits for non-deterministic periods of time until the queried element is removed or times out.
131
-
-[`within`](https://callstack.github.io/react-native-testing-library/docs/other#within) - creates a queries object scoped for a given element.
122
+
React Native Testing Library consists of following APIs:
123
+
124
+
-[`render` function](https://callstack.github.io/react-native-testing-library/docs/render) - render your UI components for testing purposes
-[Queries](https://callstack.github.io/react-native-testing-library/docs/screen#queries) - find rendered components by various predicates: role, text, test ids, etc
-[Jest matchers](https://callstack.github.io/react-native-testing-library/docs/jest-matchers) - validate assumptions about your UI
130
+
-[User Event](https://callstack.github.io/react-native-testing-library/docs/user-event) - simulate common user interactions like [`press`](user-event#press) or [`type`](user-event#type) in a realistic way
131
+
-[Fire Event](https://callstack.github.io/react-native-testing-library/docs/fire-event) - simulate any component event in a simplified way
0 commit comments