ericelliott/react-pure-component-starter

Simulating onClick when testing

オープン

#1 opened on 2015/10/17

 (4 件のコメント) (1 件のリアクション) (0 人の担当者)JavaScript (88 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (801 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド