阅读背景:

[React Testing] Mock HTTP Requests with jest.mock in React Component Tests

来源:互联网 

If you have a component that makes HTTP requests, you’ll probably want to mock those out for UI unit and integration tests. Let’s see how to use jest’s built-in mocking capabilities to do that.If you have a component that makes HTTP requests




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

分享到: