diff --git a/README.md b/README.md index e05efacf0..c2a31e9ef 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,7 @@ React Native Testing Library consists of following APIs: - [Jest matchers](https://callstack.github.io/react-native-testing-library/docs/jest-matchers) - validate assumptions about your UI - [User Event](https://callstack.github.io/react-native-testing-library/docs/user-event) - simulate common user interactions like [`press`](https://callstack.github.io/react-native-testing-library/docs/user-event#press) or [`type`](https://callstack.github.io/react-native-testing-library/docs/user-event#type) in a realistic way - [Fire Event](https://callstack.github.io/react-native-testing-library/docs/fire-event) - simulate any component event in a simplified way +- [`renderHook` function](https://callstack.github.io/react-native-testing-library/docs/render-hook) - render hooks for testing purposes - [Other APIs](https://callstack.github.io/react-native-testing-library/docs/other): - [Async utils](https://callstack.github.io/react-native-testing-library/docs/other#async-utilities): `findBy*` queries, `waitFor`, `waitForElementToBeRemoved` - [Configuration](https://callstack.github.io/react-native-testing-library/docs/other#configuration): `configure`, `resetToDefaults` diff --git a/website/docs/API.md b/website/docs/API.md index 3fb4a9ea4..91a1af343 100644 --- a/website/docs/API.md +++ b/website/docs/API.md @@ -13,6 +13,7 @@ React Native Testing Library consists of following APIs: - [Jest matchers](jest-matchers) - validate assumptions about your UI - [User Event](user-event) - simulate common user interactions like [`press`](user-event#press) or [`type`](user-event#type) in a realistic way - [Fire Event](fire-event) - simulate any component event in a simplified way +- [`renderHook` function](render-hook) - render hooks for testing purposes - [Other APIs](other): - [Async utils](other#async-utilities): `findBy*` queries, `wait`, `waitForElementToBeRemoved` - [Configuration](other#configuration): `configure`, `resetToDefaults` diff --git a/website/docs/UserEvent.md b/website/docs/UserEvent.md index fe023496d..62b3ae17a 100644 --- a/website/docs/UserEvent.md +++ b/website/docs/UserEvent.md @@ -1,6 +1,6 @@ --- id: user-event -title: User Event interactions +title: User Event --- :::note diff --git a/website/sidebars.js b/website/sidebars.js index c6164686a..e4325cc9c 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -6,9 +6,9 @@ module.exports = { 'render', 'screen', 'queries', + 'jest-matchers', 'user-event', 'fire-event', - 'jest-matchers', 'render-hook', 'other', ],