单元测试:如何对componentDidUpdate进行单元测试?

我想对使用mocha,Chia和酶的componentDidUpdate进行单元测试。我阅读了文档,但是componentDidUpdate没有任何显示。

  componentDidUpdate() {
        if (this.props.statusMessage.messageType === SUCCESSFUL_REQUEST_CLASS) {
            this.props.reset('futureChanges');
            this.props.resetfutureAgentTable();
            this.props.removeFutureTemplate();
        }
    }
oo748899 回答:单元测试:如何对componentDidUpdate进行单元测试?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3150439.html

大家都在问