Skip to content

docs: add renderAsync method and update API documentation #1529

Draft
aurorascharff wants to merge 1 commit intotesting-library:mainfrom
aurorascharff:main
Draft

docs: add renderAsync method and update API documentation #1529
aurorascharff wants to merge 1 commit intotesting-library:mainfrom
aurorascharff:main

Conversation

@aurorascharff
Copy link

Add renderAsync API docs

Documents the new renderAsync function for React Testing Library (testing-library/react-testing-library#1444), which enables unit testing of async React Server Components and components using React 19's use() hook.

Adds a full renderAsync section to docs/react-testing-library/api.mdx with TypeScript signature, usage examples (basic async components, nested async components, use() hook), options, result, and async rerender. Also updates the cleanup section to reference renderAsync.

Related

@netlify
Copy link

netlify bot commented Mar 19, 2026

Deploy Preview for testing-library ready!

Name Link
🔨 Latest commit 1d4e642
🔍 Latest deploy log https://app.netlify.com/projects/testing-library/deploys/69bbcaaabd04bc0008cbc1ef
😎 Deploy Preview https://deploy-preview-1529--testing-library.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant