阅读背景:

Jest模拟异步调用内部响应组件。

来源:互联网 

I'm new to jest/enzyme and am trying to mock a call to an aync function that returns a Promise, the call is made inside a react component in the componentDidMount method.I'm new to jest/enzyme and am trying to mock a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: