Skip to content

Commit c5e9b71

Browse files
authored
chore(docs): followup fixes for docusaurs alpha.61 (#510)
* fix links * update projectName to reference the one on github
1 parent e49030b commit c5e9b71

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

website/docs/MigrationV7.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ There are slight differences in how `fireEvent` works in both libraries:
116116
+fireEvent(element: ReactTestInstance, eventName: string, ...data: Array<any>)
117117
```
118118
1. There is no `NativeTestEvent` - second and rest arguments are used instead.
119-
1. There are only 3 short-hand events: [`fireEvent.press`](`/docs/api/#fireeventpress-element-reacttestinstance--void`), [`fireEvent.changeText`](https://callstack.github.io/react-native-testing-library/docs/api/#fireeventchangetext-element-reacttestinstance-data-arrayany--void) and [`fireEvent.scroll`](https://callstack.github.io/react-native-testing-library/docs/api/#fireeventchangetext-element-reacttestinstance-data-arrayany--void). For all other or custom events you can use the base signature.
119+
1. There are only 3 short-hand events: [`fireEvent.press`](api/#fireeventpress-element-reacttestinstance--void), [`fireEvent.changeText`](api/#fireeventchangetext-element-reacttestinstance-data-arrayany--void) and [`fireEvent.scroll`](api/#fireeventscroll-element-reacttestinstance-data-arrayany--void). For all other or custom events you can use the base signature.

website/docs/Queries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ In order to properly use `findBy` and `findAllBy` queries you need at least Reac
3737
:::
3838

3939
:::info
40-
`findBy` and `findAllBy` queries accept optional `waitForOptions` object argument which can contain `timeout` and `interval` properies which have the same meaning as respective options for [`waitFor`](https://callstack.github.io/react-native-testing-library/docs/api#waitfor) function.
40+
`findBy` and `findAllBy` queries accept optional `waitForOptions` object argument which can contain `timeout` and `interval` properies which have the same meaning as respective options for [`waitFor`](api#waitfor) function.
4141
:::
4242

4343
## Queries
@@ -59,7 +59,7 @@ type ReactTestInstance = {
5959
6060
Returns a `ReactTestInstance` with matching text – may be a string or regular expression.
6161

62-
This method will join `<Text>` siblings to find matches, similarly to [how React Native handles these components](https://facebook.github.io/react-native/docs/text#containers). This will allow for querying for strings that will be visually rendered together, but may be semantically separate React components.
62+
This method will join `<Text>` siblings to find matches, similarly to [how React Native handles these components](https://reactnative.dev/docs/text#containers). This will allow for querying for strings that will be visually rendered together, but may be semantically separate React components.
6363

6464
```jsx
6565
import { render } from '@testing-library/react-native';

website/docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const siteConfig = {
66
tagline: 'Helps you to write better tests with less effort.',
77
url: 'https://callstack.github.io', // Your website URL
88
baseUrl: '/react-native-testing-library/', // Base URL for your project
9-
// Used for publishing and more
10-
projectName: '@testing-library/react-native',
9+
// The name of the GitHub repository. Used by the deployment command
10+
projectName: 'react-native-testing-library',
1111
organizationName: 'callstack',
1212
favicon: 'img/owl.png',
1313

0 commit comments

Comments
 (0)