RealOrangeOne/react-native-mock

axios calls don't return

Open

#131 创建于 2017年4月12日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)JavaScript (151 fork)github user discovery
Mockhelp wanted

仓库指标

Star
 (567 star)
PR 合并指标
 (PR 指标待抓取)

描述

I have a suite of integration tests that use axios - which in turn uses the newly mocked out XMLHttpRequest. These calls don't return anymore.

I do stub out the API requests for the rest of my test suite, but I'd still like to be able to run integration tests to verify the contracts for some of the APIs - verifying the integration doesn't break.

Is there a way to replace the mock or unmock it? This used to work before 0.3.0.

贡献者指南