ericelliott/react-pure-component-starter

Simulating onClick when testing

Open

#1 建立於 2015年10月17日

在 GitHub 查看
 (4 留言) (1 反應) (0 負責人)JavaScript (88 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (801 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Thank you for this. I was actually busy implementing my own solution similar to this, but including Redux. Anyway, curious to know how you test components that require user interaction? An example would be onClick. I looked at shallowRender, but then you have to navigate to your children and call the method manually. Not ideal and not elegant.

貢獻者指南