104
rated 0 times
[
105]
[
1]
/ answers: 1 / hits: 23295
/ 10 Years ago, sat, may 31, 2014, 12:00:00
Is there a way to unmount and garbage collect a React Component that was mounted using TestUtils.renderIntoDocument
inside a jsdom test?
I'm trying to test something that happens on componentWillUnmount
and TestUtils.renderIntoDocument
doesn't return any DOM node to call React. unmountComponentAtNode
on.
More From » reactjs