0

cleanup在codesandbox中不起作用,我在这里建议的人评论ReactDOM.render函数:https://github.com/CompuIves/codesandbox-client/issues/1525它可以工作,但fireEvent不起作用。反之亦然,当我不评论 ReactDOM.render 函数时,它fireEvent可以工作,cleanup也不能。

代码:https ://codesandbox.io/s/mqm2w49y1x

4

1 回答 1

0

RTL 在代码沙盒中效果不佳。而是在本地机器上运行测试。

于 2019-04-07T09:17:39.347 回答