React 组件的常见测试模式。 ... 对于每个测试,我们通常希望将React 树渲染给附加到 document 的DOM 元素。 ... appendChild(container); jest.
確定! 回上一頁