You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(runtime,jest,bridge): add console forwarding and batched state updates
Console Forwarding:
- Forward console.log/warn/error/info/debug from device to Jest output
- Add ConsoleEvent/ConsoleLevel types to BridgeEvents union
- Preserve Error details (stack/message) in forwarded output
- Add rate limiting (100 msgs/sec) to prevent flooding
- Fix %d printf placeholder to use Number() for decimals
Type Improvements:
- Remove type assertions in factory.ts with proper ConsoleEvent types
- Add proper generic constraints for Harness.on/off methods
- Import shared ConsoleEvent type in jest package
Shared Utilities:
- Extract batchedUpdate utility to avoid code duplication
- Add resetRenderState helper for common state reset pattern
- Simplify render/cleanup.ts using shared utilities
0 commit comments