We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce729c7 commit 6e163ecCopy full SHA for 6e163ec
docs/react-testing-library/api.mdx
@@ -31,6 +31,7 @@ as these methods:
31
- [`renderHook` Result](#renderhook-result)
32
- [`result`](#result)
33
- [`rerender`](#rerender-1)
34
+ - [`unmount`](#unmount-1)
35
36
---
37
@@ -324,6 +325,12 @@ All it does is forward all arguments to the act function if your version of
324
325
react supports `act`. It is recommended to use the import from
326
`@testing-library/react` over `react-dom/test-utils` for consistency reasons.
327
328
+```typescript
329
+export const act: typeof reactAct extends undefined
330
+ ? (callback: () => void) => void
331
+ : typeof reactAct
332
+```
333
+
334
## `renderHook`
335
336
This is a convenience wrapper around `render` with a custom test component. The
0 commit comments