We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
act
1 parent 34c21e4 commit e87b6c8Copy full SHA for e87b6c8
docs/react-testing-library/api.md
@@ -248,9 +248,9 @@ that you configure your test framework to run a file before your tests which
248
does this automatically. See the [setup](./setup) section for guidance on how to
249
set up your framework.
250
251
-## `flushEffects`
+## `act`
252
253
-**Experimental**
254
-
255
-This experimental API is intended to be used to force React's `useEffect` hook
256
-to run synchronously.
+This is a light wrapper around the
+[`react-dom/test-utils` `act` function](https://reactjs.org/docs/test-utils.html#act).
+All it does is forward all arguments to the act function if your version of
+react supports `act`.
0 commit comments