ericelliott/react-pure-component-starter
Auf GitHub ansehenSimulating onClick when testing
Open
#1 geöffnet am 17. Okt. 2015
enhancementhelp wanted
Repository-Metriken
- Stars
- (801 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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.