Skip to content

Commit 61e5539

Browse files
committed
chore: tweaks
1 parent 5167da5 commit 61e5539

File tree

5 files changed

+5
-20
lines changed

5 files changed

+5
-20
lines changed

website/docs/13.x-alpha/docs/api/events/user-event.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# User Event interactions
22

3-
:::info RNTL minimal version
4-
5-
User Event interactions require RNTL v12.2.0 or later.
6-
7-
:::
8-
93
## Comparison with Fire Event API
104

115
Fire Event is our original event simulation API. It can invoke **any event handler** declared on **either host or composite elements**. Suppose the element does not have `onEventName` event handler for the passed `eventName` event, or the element is disabled. In that case, Fire Event will traverse up the component tree, looking for an event handler on both host and composite elements along the way. By default, it will **not pass any event data**, but the user might provide it in the last argument.

website/docs/13.x-alpha/docs/api/jest-matchers.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# Jest matchers
22

3-
:::info RNTL minimal version
4-
5-
Built-in Jest matchers require RNTL v12.4.0 or later.
6-
7-
:::
8-
93
This guide describes built-in Jest matchers, we recommend using these matchers as they provide readable tests, accessibility support, and a better developer experience.
104

115
## Setup

website/docs/13.x-alpha/docs/api/misc/config.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Default [debug options](#debug) to be used when calling `debug()`. These default
2929

3030
### `concurrentRoot` option
3131

32-
Set to `true` to enable concurrent rendering used in the React Native New Architecture. Otherwise `render` will default to legacy synchronous rendering.
32+
Set to `false` to disable concurrent rendering.
33+
Otherwise, `render` will default to using concurrent rendering used in the React Native New Architecture.
3334

3435
## `resetToDefaults()`
3536

website/docs/13.x-alpha/docs/api/render.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ This option allows you to wrap the tested component, passed as the first option
3434

3535
#### `concurrentRoot` option
3636

37-
Set to `true` to enable concurrent rendering used in the React Native New Architecture. Otherwise `render` will default to legacy synchronous rendering.
37+
Set to `false` to disable concurrent rendering.
38+
Otherwise, `render` will default to using concurrent rendering used in the React Native New Architecture.
3839

3940
#### `createNodeMock` option
4041

website/docs/13.x-alpha/docs/migration/jest-matchers.mdx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ All of the built-in Jest matchers provided by the React Native Testing Library s
88

99
## Usage
1010

11-
You can use the built-in matchers by adding the following line to your `jest-setup.ts` file (configured using [`setupFilesAfterEnv`](https://jestjs.io/docs/configuration#setupfilesafterenv-array)):
12-
13-
```ts title=jest-setup.ts
14-
import '@testing-library/react-native/extend-expect';
15-
```
11+
You don't need to do anything to use the built-in matchers. They are automatically available when you import anything from `@testing-library/react-native`.
1612

1713
### Gradual migration
1814

@@ -23,7 +19,6 @@ You can use the built-in matchers alongside legacy Jest Native matchers by chang
2319
// import '@testing-library/jest-native/extend-expect';
2420

2521
// With this:
26-
import '@testing-library/react-native/extend-expect';
2722
import '@testing-library/jest-native/legacy-extend-expect';
2823
```
2924

0 commit comments

Comments
 (0)