ericelliott/react-pure-component-starter

Simulating onClick when testing

Open

#1 aperta il 17 ott 2015

Vedi su GitHub
 (4 commenti) (1 reazione) (0 assegnatari)JavaScript (88 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (801 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor