ericelliott/react-pure-component-starter

Simulating onClick when testing

Open

#1 创建于 2015年10月17日

在 GitHub 查看
 (4 评论) (1 反应) (0 负责人)JavaScript (801 star) (88 fork)batch import
enhancementhelp wanted

描述

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.

贡献者指南