Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughAdds platform-specific test infrastructure (native + web), adjusts many test import paths, introduces web Jest config and setup, updates turbo/task/test scripts, enhances withUniwind.native HOC to record dependencies earlier and merge class-derived styles with existing inline styles, and adds comprehensive tests for HOC behavior. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Author as Author/Test
participant HOC as withUniwind HOC
participant Store as UniwindStore\n(getStyles)
participant Wrapped as WrappedComponent
Author->>HOC: render with props (className, style, colorClassName, manual config)
HOC->>Store: getStyles(className or colorClassName)
Store-->>HOC: { styles, dependencies }
Note right of HOC: dependencies recorded early\n(acc.dependencies push ...)
alt propName is non-style
HOC-->>Wrapped: propName = styles
else propName is style and existing prop present
HOC-->>Wrapped: propName = [styles, existingStyle]
else propName is style and no existing prop
HOC-->>Wrapped: propName = styles
end
Wrapped-->>Author: rendered output / DOM / RN view
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
fixes #336
Summary by CodeRabbit
Tests
Chores