Skip to content

Commit 39685fe

Browse files
committed
docs: fixes
1 parent b65ce8a commit 39685fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

website/docs/API.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ root: ReactTestInstance;
260260

261261
Returns the rendered root [host element](testing-env#host-and-composite-components).
262262

263-
This API is primarily useful in component tests, as it allows you to access root host view without using `ByTestId` queries or similar methods.
263+
This API is primarily useful in component tests, as it allows you to access root host view without using `*ByTestId` queries or similar methods.
264264

265265
### `UNSAFE_root`
266266

@@ -270,13 +270,13 @@ UNSAFE_root: ReactTestInstance;
270270

271271
Returns the rendered [composite root element](testing-env#host-and-composite-components).
272272

273-
::caution
273+
:::caution
274274
This API typically will return a composite view which goes against recommended testing practices. This API is primarily available for legacy test suits that rely on such testing.
275-
::
275+
:::
276276

277-
::note
277+
:::note
278278
This API has been previously named `container` for compatibility with [React Testing Library](https://testing-library.com/docs/react-testing-library/api#container-1). However, despite the same name, the actual behavior has been signficantly different, hence the name change to `UNSAFE_root`.
279-
::
279+
:::
280280

281281
## `screen`
282282

0 commit comments

Comments
 (0)