有没有办法卸载和垃圾收集TestUtils.renderIntoDocument在jsdom测试中使用安装的React组件?
TestUtils.renderIntoDocument
我正在尝试测试发生的事情componentWillUnmount并且TestUtils.renderIntoDocument不会返回任何要调用的DOM节点React. unmountComponentAtNode.
componentWillUnmount
React. unmountComponentAtNode
javascript jsdom reactjs
javascript ×1
jsdom ×1
reactjs ×1