Skip to content

Commit f348a2d

Browse files
authored
chore: rephrase the act comment in readme (#7)
1 parent 1162a04 commit f348a2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ test('counter button increments the count', async () => {
1919
})
2020
```
2121

22-
> 💡 This library doesn't expose or use React's `act`. Instead, you should use Vitest's locators and `expect.element` API that have [retry-ability mechanism](https://vitest.dev/guide/browser/assertion-api) baked in.
22+
> 💡 This library doesn't expose React's `act` and uses it only to flush operations happening as part of `useEffect` during initial rendering and unmouting.
23+
Other use cases are handled by CDP and `expect.element` which both have built-in [retry-ability mechanism](https://vitest.dev/guide/browser/assertion-api).
2324

2425
`vitest-browser-react` also automatically injects `render` method on the `page`. Example:
2526

0 commit comments

Comments
 (0)