From 8ac00fc5f0a41602d95817a308683fde9e82b549 Mon Sep 17 00:00:00 2001 From: Maciej Jastrzebski Date: Tue, 30 Apr 2024 10:56:42 +0200 Subject: [PATCH 1/2] docs: api overview tweaks --- website/docs/API.md | 1 + website/docs/UserEvent.md | 2 +- website/sidebars.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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', ], From 63482490ca20a478797323cf9175cd37de050d77 Mon Sep 17 00:00:00 2001 From: Maciej Jastrzebski Date: Tue, 30 Apr 2024 10:57:33 +0200 Subject: [PATCH 2/2] docs: update README --- README.md | 1 + 1 file changed, 1 insertion(+) 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`