Re:Unit testing React components without a DOM
by GordyMD on Monday June 15, 2015 @10:06AM
(#9719319)
Thanks for this. Noticed whilst testing that renderIntoDocument in ReactTestUtils doesn't even render the ReactComponent into the DOM either and is due to be renamed. [1] Shallow rendering looks like the correctly renamed approach... I'll be updating my tests accordingly.
[1] https://github.com/facebook/react/blob/master/src/test/React...