【问题标题】:Detox: App has not responded to the network requests below排毒:App没有响应下面的网络请求
【发布时间】:2020-12-11 06:57:10
【问题描述】:

以 Jest-Circus 作为测试运行器运行 detox 17.4.3 我在使用 iOS 模拟器时遇到以下错误。

detox[18766] WARN:  [Client.js/PENDING_REQUESTS] App has not responded to the network requests below:
  (id = -1000) isReady: {}

Unresponded network requests might result in timeout errors in Detox tests.

这是我的 package.json 中 Jest 的版本。

 "jest": "^26.4.1",

 "jest-circus": "^26.4.1",  

任何想法我可以如何进一步调试或修复?

【问题讨论】:

  • 运气好吗?遇到同样的问题
  • @RomainBraun 不,我从来没有通过它。

标签: jestjs detox jest-circus


【解决方案1】:

就我而言:从 18.0.0(2020 年 12 月)起,Detox 要求您致电 device.launchApp(),否则您的所有测试都将超时,因为应用程序未启动。请参阅migration guide

很遗憾,release notes 中没有记录或错误消息中没有建议 - 打开GitHub issue 以建议更清晰的文档。

【讨论】:

    猜你喜欢
    • 2020-04-07
    • 2020-01-06
    • 1970-01-01
    • 2016-11-01
    • 1970-01-01
    • 2018-08-01
    • 2021-10-26
    • 1970-01-01
    • 2021-01-16
    相关资源
    最近更新 更多