opentui icon indicating copy to clipboard operation
opentui copied to clipboard

test: Add comprehensive React test suite with SolidJS feature parity

Open zenyr opened this issue 1 month ago • 2 comments

Summary

Adds comprehensive test coverage to React reconciler with feature parity to SolidJS tests. 6 logical commits covering testing utilities, rendering, control flow, layout, events, and CJK grapheme rendering analysis. (effectively supersedes #256 albeit different)

Test Results

29 pass ✅
91 skip ⊘ (pre-existing CJK grapheme bugs or unimplemented React components)
0 fail ✅

Coverage

  • Basic text & multiline rendering
  • Conditional rendering (&&, ternary)
  • List rendering with .map()
  • Flexbox layout (row/column, flex-grow)
  • Dimensions (width, height, padding, margin)
  • Positioning (absolute, overflow)
  • Alignment (justify-content, align-items)
  • Mouse events (onMouseEnter, onMouseLeave)
  • Select component events

Commits

  1. React testing utilities (testRender, captureCharFrame)
  2. Basic text rendering tests (2 pass)
  3. Control flow tests (9 pass)
  4. Layout & styling tests (11 pass)
  5. Event handling tests (3 pass)
  6. Textarea and CJK grapheme tests (4 pass, 91 skip)

zenyr avatar Nov 04 '25 05:11 zenyr

Update:

  • #309 might supersede this PR

zenyr avatar Nov 13 '25 03:11 zenyr

@zenyr yes, this one was testing the CJK issue workaround, which is hopefully fixed. @msmps maintains react and he has plans for it.

kommander avatar Nov 13 '25 07:11 kommander