-
Notifications
You must be signed in to change notification settings - Fork 722
Document "How to test React.lazy" #1255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I also do have |
You want to use |
It's great that you're considering a documentation on using Since this issue is moved to docs repo, renamed and now serving to create a documentation on lazy component testing, I am creating a separate issue on react-testing-library repo to address the act warning for dependents of a shared component using lazy (I believe it's a different concern entirely). |
@testing-library/react
version: 14.0.0Relevant code or config:
What you did:
Run test using
yarn test
from a CRA configured project.What happened:
Receiving warning,
Reproduction:
Sandbox: https://codesandbox.io/p/sandbox/demo-act-warning-nq3v9h?file=%2Fsrc%2FExample.test.tsx&selection=%5B%7B%22endColumn%22%3A1%2C%22endLineNumber%22%3A1%2C%22startColumn%22%3A1%2C%22startLineNumber%22%3A1%7D%5D
Problem description:
Warning starts to appear after upgrading to React 18.
Suggested solution:
No warning message
The text was updated successfully, but these errors were encountered: