Re:Unit testing React components without a DOM
by benhue on Monday June 15, 2015 @08:39AM
(#9718920)
How would you handle dom events with this method (such as click, hover etc.)?
[ Parent
| on HN ]
Re:Unit testing React components without a DOM
by dugmartin on Monday June 15, 2015 @08:55AM
(#9718980)
There is a simulate event method in React TestUtils: https://facebook.github.io/react/docs/test-utils.html