Skip to content

Commit 49618c6

Browse files
docs: fix links (#1618)
1 parent 3cdfb85 commit 49618c6

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

README.md

+19-17
Original file line numberDiff line numberDiff line change
@@ -89,32 +89,34 @@ You can find the source of `QuestionsBoard` component and this example [here](ht
8989

9090
React Native Testing Library consists of following APIs:
9191

92-
- [`render` function](https://callstack.github.io/react-native-testing-library/docs/render) - render your UI components for testing purposes
93-
- [`screen` object](https://callstack.github.io/react-native-testing-library/docs/screen) - access rendered UI:
94-
- [Queries](https://callstack.github.io/react-native-testing-library/docs/queries) - find rendered components by various predicates: role, text, test ids, etc
95-
- Lifecycle methods: [`rerender`](https://callstack.github.io/react-native-testing-library/docs/screen#rerender), [`unmount`](https://callstack.github.io/react-native-testing-library/docs/screen#unmount)
96-
- Helpers: [`debug`](https://callstack.github.io/react-native-testing-library/docs/screen#debug), [`toJSON`](https://callstack.github.io/react-native-testing-library/docs/screen#tojson), [`root`](https://callstack.github.io/react-native-testing-library/docs/screen#root)
97-
- [Jest matchers](https://callstack.github.io/react-native-testing-library/docs/jest-matchers) - validate assumptions about your UI
98-
- [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
99-
- [Fire Event](https://callstack.github.io/react-native-testing-library/docs/fire-event) - simulate any component event in a simplified way
100-
- [`renderHook` function](https://callstack.github.io/react-native-testing-library/docs/render-hook) - render hooks for testing purposes
101-
- [Other APIs](https://callstack.github.io/react-native-testing-library/docs/other):
102-
- [Async utils](https://callstack.github.io/react-native-testing-library/docs/other#async-utilities): `findBy*` queries, `waitFor`, `waitForElementToBeRemoved`
103-
- [Configuration](https://callstack.github.io/react-native-testing-library/docs/other#configuration): `configure`, `resetToDefaults`
104-
- [Accessibility](https://callstack.github.io/react-native-testing-library/docs/other#accessibility): `isHiddenFromAccessibility`
105-
- [Other](https://callstack.github.io/react-native-testing-library/docs/other#other-helpers): `within`, `act`, `cleanup`
92+
- [`render` function](https://callstack.github.io/react-native-testing-library/docs/api/render) - render your UI components for testing purposes
93+
- [`screen` object](https://callstack.github.io/react-native-testing-library/docs/api/screen) - access rendered UI:
94+
- [Queries](https://callstack.github.io/react-native-testing-library/docs/api/queries) - find rendered components by various predicates: role, text, test ids, etc
95+
- Lifecycle methods: [`rerender`](https://callstack.github.io/react-native-testing-library/docs/api/screen#rerender), [`unmount`](https://callstack.github.io/react-native-testing-library/docs/screen#unmount)
96+
- Helpers: [`debug`](https://callstack.github.io/react-native-testing-library/docs/api/screen#debug), [`toJSON`](https://callstack.github.io/react-native-testing-library/docs/api/screen#tojson), [`root`](https://callstack.github.io/react-native-testing-library/docs/api/screen#root)
97+
- [Jest matchers](https://callstack.github.io/react-native-testing-library/docs/api/jest-matchers) - validate assumptions about your UI
98+
- [User Event](https://callstack.github.io/react-native-testing-library/docs/api/events/user-event) - simulate common user interactions like [`press`](https://callstack.github.io/react-native-testing-library/docs/api/events/user-event#press) or [`type`](https://callstack.github.io/react-native-testing-library/docs/user-event#type) in a realistic way
99+
- [Fire Event](https://callstack.github.io/react-native-testing-library/docs/api/events/fire-event) - simulate any component event in a simplified way
100+
- [`renderHook` function](https://callstack.github.io/react-native-testing-library/docs/api/misc/render-hook) - render hooks for testing purposes
101+
- Miscellaneous APIs:
102+
- [Async utils](https://callstack.github.io/react-native-testing-library/docs/api/misc/async): `findBy*` queries, `waitFor`, `waitForElementToBeRemoved`
103+
- [Configuration](https://callstack.github.io/react-native-testing-library/docs/api/misc/config): `configure`, `resetToDefaults`
104+
- [Accessibility](https://callstack.github.io/react-native-testing-library/docs/api/misc/accessibility): `isHiddenFromAccessibility`
105+
- [Other](https://callstack.github.io/react-native-testing-library/docs/api/misc/other): `within`, `act`, `cleanup`
106106

107107
## Migration Guides
108108

109-
- [Migration to 12.0](https://callstack.github.io/react-native-testing-library/docs/migration-v12)
109+
- [Migration to 12.0](https://callstack.github.io/react-native-testing-library/docs/migration/v12)
110+
- [Migration to built-in Jest Matchers](https://callstack.github.io/react-native-testing-library/docs/migration/jest-matchers)
111+
110112

111113
## Troubleshooting
112114

113-
- [Troubleshooting guide](https://callstack.github.io/react-native-testing-library/docs/troubleshooting)
115+
- [Troubleshooting guide](https://callstack.github.io/react-native-testing-library/docs/guides/troubleshooting)
114116

115117
## Community Resources
116118

117-
Check out our list of [Community Resources about RNTL](https://callstack.github.io/react-native-testing-library/docs/community-resources).
119+
Check out our list of [Community Resources about RNTL](https://callstack.github.io/react-native-testing-library/docs/guides/community-resources).
118120

119121
## Made with ❤️ at Callstack
120122

website/docs/12.x/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hero:
1111
link: /docs/start/quick-start
1212
- theme: alt
1313
text: Explore API
14-
link: /api
14+
link: /docs/api
1515
features:
1616
- title: Maintainable
1717
details: Write maintainable tests for your React Native apps.

website/rspress.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export default defineConfig({
4949
title: 'React Native Testing Library',
5050
type: 'website',
5151
url: 'https://callstack.github.io/react-native-testing-library/',
52-
image: 'https://re-pack.dev/img/og-image.png',
5352
description: 'Helps you to write better tests with less effort.',
5453
}),
5554
],

0 commit comments

Comments
 (0)