ericelliott/react-pure-component-starter

Simulating onClick when testing

开放

#1 创建于 2015年10月17日

 (4 条评论) (1 个反应) (0 位负责人)JavaScript (88 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (801 个星标)
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.

贡献者指南