Skip to content

Commit f3fb67d

Browse files
Apply suggestions from code review
Co-authored-by: Jerel Miller <[email protected]>
1 parent 7ede425 commit f3fb67d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ await expect(snapshotStream).toRerender()
265265
> Keep in mind that if you use the `/pure` import, you have to call the
266266
> `cleanup` export manually after each test.
267267
268-
## Usage side-by side with `@testing-library/react` or other tools that set `IS_REACT_ACT_ENVIRONMENT` or use `act`
268+
## Usage side-by side with `@testing-library/react` or other tools that use `act` or set `IS_REACT_ACT_ENVIRONMENT`
269269
270-
This library is written in a way if should not be used with `act`, and it will
270+
This library should not be used with `act`, and it will throw an error if `IS_REACT_ACT_ENVIRONMENT` is `true`
271271
throw an error if `IS_REACT_ACT_ENVIRONMENT` is `true`.
272272
273-
React Testing Library usually sets `IS_REACT_ACT_ENVIRONMENT` to `true`
273+
React Testing Library sets `IS_REACT_ACT_ENVIRONMENT` to `true`
274274
globally, and wraps some helpers like `userEvent.click` in `act` calls.
275275
276276
To use this library side-by-side with React Testing Library, we ship the

0 commit comments

Comments
 (0)