mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #209] [CLOSED] Add support for testing React components #1155
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/209
Author: @remorses
Created: 10/9/2025
Status: ❌ Closed
Base:
main← Head:react-test-render📝 Commits (5)
8e96ae7add support for testing react componentsf91f4c9add support for awaiting React renderd05f868update snapshots8322e96fix ai slop0b6b1e6Update renderer.test.tsx📊 Changes
5 files changed (+125 additions, -18 deletions)
View changed files
📝
packages/core/src/testing/test-renderer.ts(+17 -4)📝
packages/react/src/reconciler/host-config.ts(+10 -1)📝
packages/react/src/reconciler/reconciler.ts(+2 -2)➕
packages/react/src/reconciler/renderer.test.tsx(+69 -0)📝
packages/react/src/reconciler/renderer.ts(+27 -11)📄 Description
Added support for passing a custom renderer in React render and make it wait until React commits
I added a ready field to the TestRenderer to be able to await the React commit. Because React renders asynchronously
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.